[go: up one dir, main page]

CN104426794B - A kind of message forwarding method and device - Google Patents

A kind of message forwarding method and device Download PDF

Info

Publication number
CN104426794B
CN104426794B CN201310373492.4A CN201310373492A CN104426794B CN 104426794 B CN104426794 B CN 104426794B CN 201310373492 A CN201310373492 A CN 201310373492A CN 104426794 B CN104426794 B CN 104426794B
Authority
CN
China
Prior art keywords
veneer
address
address pool
message
board
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
CN201310373492.4A
Other languages
Chinese (zh)
Other versions
CN104426794A (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 Ordnance Equipment Group Ordnance Equipment Research Institute
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310373492.4A priority Critical patent/CN104426794B/en
Publication of CN104426794A publication Critical patent/CN104426794A/en
Application granted granted Critical
Publication of CN104426794B publication Critical patent/CN104426794B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种报文转发方法,用于节省地址池资源。所述方法包括:将发生故障的第一单板对应的M个地址池块分配给负载分担组中的其他单板;将第一负载分担表中所述M个地址池块的M个地址池块标识对应的单板的单板标识相应分别更新为被分配的单板标识,获得第二负载分担表;将所述第二负载分担表下发给所述负载分担组中的各单板,以使所述负载分担组中的一单板根据所述第二负载分担表,为收到的报文分配源公网地址,及根据所述报文携带的目的公网地址将所述报文进行转发。本发明还公开了用于另一种报文转发方法及相应装置。

The invention discloses a message forwarding method for saving address pool resources. The method includes: allocating M address pool blocks corresponding to the first single board that has failed to other single boards in the load sharing group; The single board identification of the single board corresponding to the block identification is correspondingly updated to the assigned single board identification, and the second load sharing table is obtained; the second load sharing table is issued to each single board in the load sharing group, so that a single board in the load sharing group assigns a source public network address to the received message according to the second load sharing table, and forwards the message to the received message according to the destination public network address carried in the message to retweet. The invention also discloses another message forwarding method and a corresponding device.

Description

一种报文转发方法及装置A message forwarding method and device

技术领域technical field

本发明涉及通信技术领域,特别涉及一种报文转发方法及装置。The invention relates to the technical field of communications, in particular to a message forwarding method and device.

背景技术Background technique

CGN,即运营商级别的NAT(Network Address Translation,网络地址转换)。CGN设备位于运营商内部,处于公共IPv4互联网络和私有IPv4地址网络的分界处,用来提供高性能的IPv4私有地址到公有地址的翻译。CGN, that is, carrier-level NAT (Network Address Translation, Network Address Translation). CGN equipment is located inside the operator, at the boundary between the public IPv4 Internet network and the private IPv4 address network, and is used to provide high-performance translation from IPv4 private addresses to public addresses.

现有技术中一般会在一个负载分担组中预留一块CGN单板不工作,当工作的CGN单板故障时,则启用预留的CGN单板加入负载分担组进行工作。In the prior art, a CGN single board is generally reserved in a load sharing group and does not work. When the working CGN single board fails, the reserved CGN single board is enabled to join the load sharing group to work.

该方案的缺点:因为要预留一块CGN单板不工作,因此负载分担成员不能全部参与负载分担工作,造成硬件资源的浪费。当工作的CGN单板故障时,启用预留的CGN单板加入负载分担组进行工作,发生故障的CGN单板的地址池资源无法进行释放,实际上造成了地址池资源的浪费。Disadvantages of this solution: Because one CGN single board is reserved for non-working, all load sharing members cannot participate in the load sharing work, resulting in waste of hardware resources. When the working CGN board fails, the reserved CGN board joins the load sharing group to work, and the address pool resources of the faulty CGN board cannot be released, which actually causes a waste of address pool resources.

发明内容Contents of the invention

本发明实施例提供一种报文转发方法及装置,用于解决现有技术中负载分担组中可能出现的地址池资源浪费的技术问题。Embodiments of the present invention provide a message forwarding method and device, which are used to solve the technical problem of waste of address pool resources that may occur in a load sharing group in the prior art.

本发明的第一方面,提供一种报文转发方法,所述方法包括以下步骤:A first aspect of the present invention provides a message forwarding method, the method comprising the following steps:

将发生故障的第一单板对应的M个地址池块分配给负载分担组中的其他单板;Allocating the M address pool blocks corresponding to the first single board that has failed to other single boards in the load sharing group;

将第一负载分担表中所述M个地址池块的M个地址池块标识对应的单板的单板标识相应分别更新为被分配的单板标识,获得第二负载分担表;correspondingly update the single board identifications of the single boards corresponding to the M address pool block identifications of the M address pool blocks in the first load sharing table to the assigned single board identifications respectively, to obtain the second load sharing table;

将所述第二负载分担表下发给所述负载分担组中的各单板,以使所述负载分担组中的一单板根据所述第二负载分担表,为收到的报文分配源公网地址,及根据所述报文携带的目的公网地址将所述报文进行转发。sending the second load sharing table to each board in the load sharing group, so that a board in the load sharing group distributes the received message according to the second load sharing table source public network address, and forward the message according to the destination public network address carried in the message.

结合第一方面,在第一种可能的实现方式中,将发生故障的第一单板对应的M个地址池块分配给负载分担组中的其他单板之前,还包括:In combination with the first aspect, in a first possible implementation manner, before allocating the M address pool blocks corresponding to the first single board that has failed to other single boards in the load sharing group, the method further includes:

将地址池分为至少一个地址池块;dividing the address pool into at least one address pool block;

将所述至少一个地址池块分配给所述负载分担组中的各单板。Allocating the at least one address pool block to each board in the load sharing group.

结合第一方面或第一种可能的实现方式,在第二种可能的实现方式中,在将所述第二负载分担表下发给所述负载分担组中的各单板之后,还包括:With reference to the first aspect or the first possible implementation manner, in the second possible implementation manner, after sending the second load sharing table to each board in the load sharing group, the method further includes:

在所述第一单板故障恢复后,从所述负载分担组的其他单板中选择至少一个目标单板,将每个目标单板对应的部分地址池块分配给所述第一单板,并令每个目标单板将分配给所述第一单板的地址池块对应的地址池块信息发送给所述第一单板;After the failure of the first single board is recovered, at least one target single board is selected from other single boards in the load sharing group, and part of the address pool block corresponding to each target single board is allocated to the first single board, and causing each target single board to send address pool block information corresponding to the address pool block allocated to the first single board to the first single board;

将所述第二负载分担表中分配给所述第一单板的地址池块的地址池块标识对应的单板的单板标识更新为所述第一单板标识,获得第三负载分担表;updating the single board identification of the single board corresponding to the address pool block identifier of the address pool block assigned to the first single board in the second load sharing table to the first single board identification, to obtain a third load sharing table ;

将所述第三负载分担表下发给所述负载分担组中的各单板。Sending the third load sharing table to each board in the load sharing group.

结合第二种可能的实现方式,在第三种可能的实现方式中,在将所述第三负载分担表下发给所述负载分担组中的各单板之后,还包括:With reference to the second possible implementation, in the third possible implementation, after sending the third load sharing table to each board in the load sharing group, the method further includes:

将所述第一单板加入所述第三负载分担表对应的负载分担组,以使所述第一单板开始工作。Adding the first single board to the load sharing group corresponding to the third load sharing table, so that the first single board starts working.

本发明的第二方面,提供一种报文转发方法,所述方法包括以下步骤:A second aspect of the present invention provides a message forwarding method, the method comprising the following steps:

在获得第二负载分担表后,获得来自一电子设备的报文,所述报文中至少携带有源私网地址及目的公网地址;After obtaining the second load sharing table, obtain a message from an electronic device, where the message at least carries an active private network address and a destination public network address;

将所述源私网地址按照第一运算规则进行处理,获得相应的地址池块标识;其中,所述第一运算规则为:当输入信息相同时,输出信息也相同;Processing the source private network address according to a first operation rule to obtain a corresponding address pool block identifier; wherein, the first operation rule is: when the input information is the same, the output information is also the same;

根据所述第二负载分担表,通过所述地址池块标识对应的地址池块为所述报文分配源公网地址,及根据所述目的公网地址将所述报文进行转发。According to the second load sharing table, assigning a source public network address to the message through the address pool block corresponding to the address pool block identifier, and forwarding the message according to the destination public network address.

结合第二方面,在第一种可能的实现方式中,根据所述第二负载分担表,通过所述地址池块标识对应的地址池块为所述报文分配源公网地址,及根据所述目的公网地址将所述报文进行转发,包括:With reference to the second aspect, in a first possible implementation manner, according to the second load sharing table, the address pool block corresponding to the address pool block identifier is used to assign a source public network address to the packet, and according to the The destination public network address forwards the message, including:

根据所述第二负载分担表确定所述地址池块标识对应的单板的单板标识是本单板的单板标识还是其他单板的单板标识;Determine according to the second load sharing table whether the board ID of the board corresponding to the address pool block ID is the board ID of the current board or the board ID of other boards;

当所述地址池块标识对应的单板的单板标识是本单板的单板标识时,通过所述地址池块标识对应的所述地址池块为所述报文分配源公网地址,及根据所述目的公网地址将所述报文进行转发;When the board ID of the board corresponding to the address pool block ID is the board ID of the current board, assigning a source public network address to the message through the address pool block corresponding to the address pool block ID, and forwarding the message according to the destination public network address;

当所述地址池块标识对应的单板的单板标识是其他单板的单板标识时,将所述报文转发至所述其他单板标识对应的单板,以通过该单板根据所述地址池块标识对应的所述地址池块为所述报文分配源公网地址,及根据所述目的公网地址将所述报文进行转发。When the board ID of the board corresponding to the address pool block ID is the board ID of other boards, forward the message to the board corresponding to the other board ID, so that the The address pool block corresponding to the address pool block identifier allocates a source public network address for the message, and forwards the message according to the destination public network address.

本发明的第三方面,提供一种报文转发装置,所述装置包括:A third aspect of the present invention provides a message forwarding device, the device comprising:

第一分配单元,用于将发生故障的第一单板对应的M个地址池块分配给负载分担组中的其他单板;The first allocation unit is configured to allocate the M address pool blocks corresponding to the first single board that has failed to other single boards in the load sharing group;

第一更新单元,用于将第一负载分担表中所述M个地址池块的M个地址池块标识对应的单板的单板标识相应分别更新为被分配的单板标识,获得第二负载分担表;The first update unit is configured to update the board IDs of the boards corresponding to the M address pool block IDs of the M address pool blocks in the first load sharing table to the assigned board IDs respectively, and obtain the second load sharing table;

第一发送单元,用于将所述第二负载分担表下发给所述负载分担组中的各单板,以使所述负载分担组中的一单板根据所述第二负载分担表,为收到的报文分配源公网地址,及根据所述报文携带的目的公网地址将所述报文进行转发。The first sending unit is configured to send the second load sharing table to each single board in the load sharing group, so that a single board in the load sharing group, according to the second load sharing table, Allocating a source public network address to the received message, and forwarding the message according to the destination public network address carried in the message.

结合第三方面,在第一种可能的实现方式中,所述装置还包括划分单元和第二分配单元;With reference to the third aspect, in a first possible implementation manner, the device further includes a dividing unit and a second allocating unit;

所述划分单元用于将地址池分为至少一个地址池块;The division unit is used to divide the address pool into at least one address pool block;

所述第二分配单元用于将所述至少一个地址池块分配给所述负载分担组中的各单板。The second allocation unit is configured to allocate the at least one address pool block to each board in the load sharing group.

结合第三方面或第一种可能的实现方式,在第二种可能的实现方式中,所述装置还包括第三分配单元和第二更新单元;With reference to the third aspect or the first possible implementation manner, in a second possible implementation manner, the device further includes a third allocating unit and a second updating unit;

所述第三分配单元用于在所述第一单板故障恢复后,从所述负载分担组的其他单板中选择至少一个目标单板,将每个目标单板对应的部分地址池块分配给所述第一单板,并令每个目标单板将分配给所述第一单板的地址池块对应的地址池块信息发送给所述第一单板;The third allocation unit is configured to select at least one target single board from other single boards in the load sharing group after the first single board fails to recover, and allocate part of the address pool block corresponding to each target single board to the first single board, and make each target single board send address pool block information corresponding to the address pool block allocated to the first single board to the first single board;

第二更新单元用于将所述第二负载分担表中分配给所述第一单板的地址池块的地址池块标识对应的单板的单板标识更新为所述第一单板标识,获得第三负载分担表;The second updating unit is configured to update the single board identifier of the single board corresponding to the address pool block identifier of the address pool block allocated to the first single board in the second load sharing table to the first single board identifier, obtaining a third load sharing table;

所述第一发送单元还用于将所述第三负载分担表下发给所述负载分担组中的各单板。The first sending unit is further configured to send the third load sharing table to each board in the load sharing group.

结合第二种可能的实现方式,在第三种可能的实现方式中,所述装置还包括操作单元,用于将所述第一单板加入所述负载分担表对应的负载分担组,以使所述第一单板开始工作。With reference to the second possible implementation manner, in a third possible implementation manner, the device further includes an operation unit configured to add the first single board to the load sharing group corresponding to the load sharing table, so that The first veneer starts to work.

本发明的第四方面,提供一种报文转发装置,所述装置包括:A fourth aspect of the present invention provides a message forwarding device, the device comprising:

获取单元,用于在获得第二负载分担表后,获得来自一电子设备的报文,所述报文中至少携带有源私网地址及目的公网地址;An obtaining unit, configured to obtain a message from an electronic device after obtaining the second load sharing table, the message carrying at least an active private network address and a destination public network address;

处理单元,用于将所述源私网地址按照第一运算规则进行处理,获得相应的地址池块标识;其中,所述第一运算规则为:当输入信息相同时,输出信息也相同;A processing unit, configured to process the source private network address according to a first operation rule to obtain a corresponding address pool block identifier; wherein, the first operation rule is: when the input information is the same, the output information is also the same;

第四分配单元,用于根据所述第二负载分担表,通过所述地址池块标识对应的地址池块为所述报文分配源公网地址,及根据所述目的公网地址将所述报文进行转发。The fourth allocating unit is configured to allocate a source public network address to the message according to the address pool block corresponding to the address pool block identifier according to the second load sharing table, and allocate the source public network address to the message according to the destination public network address The message is forwarded.

结合第四方面,在第一种可能的实现方式中,所述第四分配单元具体用于:根据所述第二负载分担表确定所述地址池块标识对应的单板的单板标识是本单板的单板标识还是其他单板的单板标识;当所述地址池块标识对应的单板的单板标识是本单板的单板标识时,通过所述地址池块标识对应的所述地址池块为所述报文分配源公网地址,及根据所述目的公网地址将所述报文进行转发;当所述地址池块标识对应的单板的单板标识是其他单板的单板标识时,将所述报文转发至所述其他单板标识对应的的单板,以通过该单板根据所述地址池块标识对应的所述地址池块为所述报文分配源公网地址,及根据所述目的公网地址将所述报文进行转发。With reference to the fourth aspect, in a first possible implementation manner, the fourth allocating unit is specifically configured to: determine, according to the second load sharing table, that the board identifier of the board corresponding to the address pool block identifier is this The single board identification of the single board is also the single board identification of other single boards; when the single board identification of the single board corresponding to the address pool block identification is the single board identification of this single board, all The address pool block allocates a source public network address for the message, and forwards the message according to the destination public network address; Forwarding the message to the board corresponding to the other board ID, so that the board allocates the message according to the address pool block corresponding to the address pool block ID source public network address, and forward the message according to the destination public network address.

本发明的第五方面,提供一种报文转发装置,所述装置包括:A fifth aspect of the present invention provides a message forwarding device, the device comprising:

第一处理器,用于将发生故障的第一单板对应的M个地址池块分配给负载分担组中的其他单板;将第一负载分担表中所述M个地址池块的M个地址池块标识对应的单板的单板标识相应分别更新为被分配的单板标识,获得第二负载分担表;The first processor is configured to allocate M address pool blocks corresponding to the first single board that has failed to other single boards in the load sharing group; and allocate M address pool blocks of the M address pool blocks in the first load sharing table The board IDs of the boards corresponding to the address pool block IDs are respectively updated to the assigned board IDs to obtain the second load sharing table;

第一发送接口,用于将所述第二负载分担表下发给所述负载分担组中的各单板,以使所述负载分担组中的一单板根据所述第二负载分担表,为收到的报文分配源公网地址,及根据所述报文携带的目的公网地址将所述报文进行转发。The first sending interface is configured to send the second load sharing table to each board in the load sharing group, so that a board in the load sharing group can, according to the second load sharing table, Allocating a source public network address to the received message, and forwarding the message according to the destination public network address carried in the message.

结合第五方面,在第一种可能的实现方式中,所述第一处理器还用于:将地址池分为至少一个地址池块;将所述至少一个地址池块分配给所述负载分担组中的各单板。With reference to the fifth aspect, in a first possible implementation manner, the first processor is further configured to: divide the address pool into at least one address pool block; allocate the at least one address pool block to the load balancing Each board in the group.

结合第五方面或第一种可能的实现方式,在第二种可能的实现方式中,所述第一处理器还用于:在所述第一单板故障恢复后,从所述负载分担组的其他单板中选择至少一个目标单板,将每个目标单板对应的部分地址池块分配给所述第一单板,并令每个目标单板将分配给所述第一单板的地址池块对应的地址池块信息发送给所述第一单板;第二更新单元用于将所述第二负载分担表中分配给所述第一单板的地址池块的地址池块标识对应的单板的单板标识更新为所述第一单板标识,获得第三负载分担表;With reference to the fifth aspect or the first possible implementation manner, in a second possible implementation manner, the first processor is further configured to: after the failure of the first single board recovers, the load sharing group Select at least one target single board from other single boards, allocate part of the address pool block corresponding to each target single board to the first single board, and make each target single board allocate to the first single board The address pool block information corresponding to the address pool block is sent to the first single board; the second update unit is used to identify the address pool block of the address pool block allocated to the first single board in the second load sharing table The single-board identification of the corresponding single board is updated to the first single-board identification, and a third load sharing table is obtained;

所述第一发送接口还用于将所述第三负载分担表下发给所述负载分担组中的各单板。The first sending interface is further configured to deliver the third load sharing table to each board in the load sharing group.

结合第二种可能的实现方式,在第三种可能的实现方式中,所述第一处理器还用于将所述第一单板加入所述负载分担表对应的负载分担组,以使所述第一单板开始工作。With reference to the second possible implementation manner, in a third possible implementation manner, the first processor is further configured to add the first single board to the load sharing group corresponding to the load sharing table, so that all The above-mentioned first board starts to work.

本发明的第六方面,提供一种报文转发装置,所述装置包括:A sixth aspect of the present invention provides a message forwarding device, the device comprising:

获取接口,用于在获得第二负载分担表后,获得来自一电子设备的报文,所述报文中至少携带有源私网地址及目的公网地址;Obtaining an interface, configured to obtain a message from an electronic device after obtaining the second load sharing table, the message carrying at least an active private network address and a destination public network address;

第二处理器,用于将所述源私网地址按照第一运算规则进行处理,获得相应的地址池块标识;其中,所述第一运算规则为:当输入信息相同时,输出信息也相同;根据所述第二负载分担表,通过所述地址池块标识对应的地址池块为所述报文分配源公网地址,及根据所述目的公网地址将所述报文进行转发。The second processor is configured to process the source private network address according to a first operation rule to obtain a corresponding address pool block identifier; wherein, the first operation rule is: when the input information is the same, the output information is also the same ; according to the second load sharing table, assigning a source public network address to the message through the address pool block corresponding to the address pool block identifier, and forwarding the message according to the destination public network address.

结合第六方面,在第一种可能的实现方式中,所述第二处理器具体用于:根据所述第二负载分担表确定所述地址池块标识对应的单板的单板标识是本单板的单板标识还是其他单板的单板标识;当所述地址池块标识对应的单板的单板标识是本单板的单板标识时,通过所述地址池块标识对应的所述地址池块为所述报文分配源公网地址,及根据所述目的公网地址将所述报文进行转发;当所述地址池块标识对应的单板的单板标识是其他单板的单板标识时,将所述报文转发至所述其他单板标识对应的的单板,以通过该单板根据所述地址池块标识对应的所述地址池块为所述报文分配源公网地址,及根据所述目的公网地址将所述报文进行转发。With reference to the sixth aspect, in a first possible implementation manner, the second processor is specifically configured to: determine, according to the second load sharing table, that the board ID of the board corresponding to the address pool block ID is this The single board identification of the single board is also the single board identification of other single boards; when the single board identification of the single board corresponding to the address pool block identification is the single board identification of this single board, all The address pool block allocates a source public network address for the message, and forwards the message according to the destination public network address; Forwarding the message to the board corresponding to the other board ID, so that the board allocates the message according to the address pool block corresponding to the address pool block ID source public network address, and forward the message according to the destination public network address.

本发明实施例中,当所述第一单板发生故障时,可以将所述第一单板对应的所述M个地址池块分配给负载分担组中的其他单板,例如可以分配给其他一个单板,或者也可以分配给其他多个单板,并将所述负载分担表中所述M个地址池块的M个地址池块标识对应的单板的单板标识相应分别更新为被分配的单板标识,这样,当有所述报文需要转发时,可以获得所述报文对应的地址池块标识,再根据所述负载分担表中地址池块标识与单板标识的对应关系就能够将所述报文分配至正确的单板,以将所述报文进行转发,从而,当单板出现故障时,能够将该单板对应的地址池块分配给其他单板,提高了地址池块的利用率,尽量避免了地址池资源的浪费。并且,由于在分配地址池块的同时也相应更新了所述负载分担表,后续报文转发可以根据更新后的负载分担表来进行,可以保证报文得到正确的转发,尽量避免报文丢失,降低信息丢失率。In the embodiment of the present invention, when the first single board fails, the M address pool blocks corresponding to the first single board can be allocated to other single boards in the load sharing group, for example, can be allocated to other A single board, or may also be assigned to other multiple single boards, and the single board identifiers of the single boards corresponding to the M address pool block identifiers of the M address pool blocks in the load sharing table are correspondingly updated to be assigned board ID, so that when the message needs to be forwarded, the address pool block ID corresponding to the message can be obtained, and then according to the corresponding relationship between the address pool block ID and the board ID in the load sharing table The message can be allocated to the correct single board to forward the message, so that when a single board fails, the address pool block corresponding to the single board can be allocated to other single boards, which improves the The utilization rate of address pool blocks avoids the waste of address pool resources as much as possible. And, since the load sharing table is also updated correspondingly when the address pool block is allocated, subsequent message forwarding can be carried out according to the updated load sharing table, which can ensure that the message is correctly forwarded and avoid message loss as much as possible. Reduce information loss rate.

本发明实施例中,在将所述第二负载分担表下发给各单板后,由单板为报文来分配源公网地址和端口号,无需由控制面来进行公网IP地址及端口号的分配,提高了分配效率,能够满足信息高速处理的需求,而且也不会给控制面增加负担。In the embodiment of the present invention, after sending the second load sharing table to each single board, the single board allocates the source public network address and port number for the message, and the control plane does not need to perform the public network IP address and port number. The allocation of port numbers improves the allocation efficiency and can meet the demand for high-speed processing of information without adding burden to the control plane.

附图说明Description of drawings

图1为本发明实施例中一种报文转发方法的主要流程图;Fig. 1 is the main flowchart of a kind of message forwarding method in the embodiment of the present invention;

图2为本发明实施例中另一种报文转发方法的主要流程图;Fig. 2 is the main flowchart of another message forwarding method in the embodiment of the present invention;

图3为本发明实施例中一种报文转发装置的结构图;FIG. 3 is a structural diagram of a message forwarding device in an embodiment of the present invention;

图4为本发明实施例中另一种报文转发装置的结构图;FIG. 4 is a structural diagram of another message forwarding device in an embodiment of the present invention;

图5为本发明实施例中一种报文转发装置的结构示意图;FIG. 5 is a schematic structural diagram of a message forwarding device in an embodiment of the present invention;

图6为本发明实施例中另一种报文转发装置的结构示意图。FIG. 6 is a schematic structural diagram of another message forwarding device in an embodiment of the present invention.

具体实施方式Detailed ways

本发明实施例提供一种报文转发方法,所述方法可以包括:将发生故障的第一单板对应的M个地址池块分配给负载分担组中的其他单板;将第一负载分担表中所述M个地址池块的M个地址池块标识对应的单板的单板标识相应分别更新为被分配的单板标识,获得第二负载分担表;将所述第二负载分担表下发给所述负载分担组中的各单板,以使所述负载分担组中的一单板根据所述第二负载分担表,为收到的报文分配源公网地址,及根据所述报文携带的目的公网地址将所述报文进行转发。An embodiment of the present invention provides a message forwarding method, the method may include: allocating the M address pool blocks corresponding to the first single board that has failed to other single boards in the load sharing group; The single board identifications of the single boards corresponding to the M address pool block identifications of the M address pool blocks in the above are respectively updated to the assigned single board identifications to obtain the second load sharing table; sending to each board in the load sharing group, so that a board in the load sharing group assigns a source public network address to the received message according to the second load sharing table, and according to the The destination public network address carried in the message forwards the message.

本发明实施例中,当所述第一单板发生故障时,可以将所述第一单板对应的所述M个地址池块分配给负载分担组中的其他单板,例如可以分配给其他一个单板,或者也可以分配给其他多个单板,并将所述负载分担表中所述M个地址池块的M个地址池块标识对应的单板的单板标识相应分别更新为被分配的单板标识,这样,当有所述报文需要转发时,可以获得所述报文对应的地址池块标识,再根据所述负载分担表中地址池块标识与单板标识的对应关系就能够将所述报文分配至正确的单板,以将所述报文进行转发,从而,当单板出现故障时,能够将该单板对应的地址池块分配给其他单板,提高了地址池块的利用率,尽量避免了地址池资源的浪费。并且,由于在分配地址池块的同时也相应更新了所述负载分担表,后续报文转发可以根据更新后的负载分担表来进行,可以保证报文得到正确的转发,尽量避免报文丢失,降低信息丢失率。In the embodiment of the present invention, when the first single board fails, the M address pool blocks corresponding to the first single board can be allocated to other single boards in the load sharing group, for example, can be allocated to other A single board, or may also be assigned to other multiple single boards, and the single board identifiers of the single boards corresponding to the M address pool block identifiers of the M address pool blocks in the load sharing table are correspondingly updated to be assigned board ID, so that when the message needs to be forwarded, the address pool block ID corresponding to the message can be obtained, and then according to the corresponding relationship between the address pool block ID and the board ID in the load sharing table The message can be allocated to the correct single board to forward the message, so that when a single board fails, the address pool block corresponding to the single board can be allocated to other single boards, which improves the The utilization rate of address pool blocks avoids the waste of address pool resources as much as possible. And, since the load sharing table is also updated correspondingly when the address pool block is allocated, subsequent message forwarding can be carried out according to the updated load sharing table, which can ensure that the message is correctly forwarded and avoid message loss as much as possible. Reduce information loss rate.

本发明实施例中,在将所述第二负载分担表下发给各单板后,由单板为报文来分配源公网地址和端口号,无需由控制面来进行公网IP地址及端口号的分配,提高了分配效率,能够满足信息高速处理的需求,而且也不会给控制面增加负担。In the embodiment of the present invention, after sending the second load sharing table to each single board, the single board allocates the source public network address and port number for the message, and the control plane does not need to perform the public network IP address and port number. The allocation of port numbers improves the allocation efficiency and can meet the demand for high-speed processing of information without adding burden to the control plane.

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

本文中描述的技术可用于各种通信系统,例如当前2G,3G通信系统和下一代通信系统,例如全球移动通信系统(GSM,Global System for Mobile communications),码分多址(CDMA,Code Division Multiple Access)系统,时分多址(TDMA,Time DivisionMultiple Access)系统,宽带码分多址(WCDMA,Wideband Code Division MultipleAccess Wireless),频分多址(FDMA,Frequency Division Multiple Addressing)系统,正交频分多址(OFDMA,Orthogonal Frequency-Division Multiple Access)系统,单载波FDMA(SC-FDMA)系统,通用分组无线业务(GPRS,General Packet Radio Service)系统,长期演进(LTE,Long Term Evolution)系统,以及其他此类通信系统。The technology described in this article can be used in various communication systems, such as current 2G, 3G communication systems and next-generation communication systems, such as Global System for Mobile Communications (GSM, Global System for Mobile communications), Code Division Multiple Access (CDMA, Code Division Multiple Access) system, Time Division Multiple Access (TDMA, Time Division Multiple Access) system, Wideband Code Division Multiple Access (WCDMA, Wideband Code Division Multiple Access Wireless), Frequency Division Multiple Access (FDMA, Frequency Division Multiple Addressing) system, Orthogonal Frequency Division Multiple Access Orthogonal Frequency-Division Multiple Access (OFDMA, Orthogonal Frequency-Division Multiple Access) system, Single Carrier FDMA (SC-FDMA) system, General Packet Radio Service (GPRS, General Packet Radio Service) system, Long Term Evolution (LTE, Long Term Evolution) system, and others such communication systems.

本发明实施例中的电子设备,可以是无线设备也可以是有线设备,无线设备可以是指向用户提供语音和/或数据连通性的设备,具有无线连接功能的手持式设备、或连接到无线调制解调器的其他处理设备。无线设备可以经无线接入网(例如,RAN,Radio AccessNetwork)与一个或多个核心网进行通信,无线设备可以是移动设备,如移动电话(或称为“蜂窝”电话)和具有移动设备的计算机,例如,可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与无线接入网交换语言和/或数据。例如,个人通信业务(PCS,Personal Communication Service)电话、无绳电话、会话发起协议(SIP)话机、无线本地环路(WLL,Wireless Local Loop)站、个人数字助理(PDA,Personal Digital Assistant)等设备。无线设备也可以称为系统、订户单元(Subscriber Unit)、订户站(SubscriberStation),移动站(Mobile Station)、移动台(Mobile)、远程站(Remote Station)、接入点(Access Point)、远程终端(Remote Terminal)、接入终端(Access Terminal)、用户终端(User Terminal)、用户代理(User Agent)、用户设备(User Device)、或用户装备(UserEquipment)。The electronic device in the embodiment of the present invention can be a wireless device or a wired device, and the wireless device can be a device that provides voice and/or data connectivity to the user, a handheld device with a wireless connection function, or a wireless modem other processing equipment. The wireless device can communicate with one or more core networks via a radio access network (for example, RAN, Radio Access Network). The wireless device can be a mobile device, such as a mobile phone (or called a "cellular" phone) and a mobile phone with a mobile device Computers, for example, may be portable, pocket, handheld, built-in, or vehicle-mounted mobile devices that exchange voice and/or data with the radio access network. For example, Personal Communication Service (PCS, Personal Communication Service) phones, cordless phones, Session Initiation Protocol (SIP) phones, Wireless Local Loop (WLL, Wireless Local Loop) stations, Personal Digital Assistant (PDA, Personal Digital Assistant) and other equipment . A wireless device can also be called a system, a subscriber unit (Subscriber Unit), a subscriber station (SubscriberStation), a mobile station (Mobile Station), a mobile station (Mobile), a remote station (Remote Station), an access point (Access Point), a remote Terminal (Remote Terminal), Access Terminal (Access Terminal), User Terminal (User Terminal), User Agent (User Agent), User Equipment (User Device), or User Equipment (User Equipment).

有线设备可以是指向用户提供语音和/或数据连通性的设备,具有有线连接功能的手持式设备。有线设备可以与一个或多个核心网进行通信,有线设备可以是固定设备,如固定电话和台式计算机。有线设备也可以称为系统、订户单元(Subscriber Unit)、订户站(Subscriber Station),远程站(Remote Station)、接入点(Access Point)、远程终端(Remote Terminal)、接入终端(Access Terminal)、用户终端(User Terminal)、用户代理(User Agent)、用户设备(User Device)、或用户装备(User Equipment)。A wired device may be a device that provides voice and/or data connectivity to a user, a handheld device with a wired connection. Wired devices can communicate with one or more core networks, and wired devices can be fixed devices such as landline phones and desktop computers. Wired equipment can also be called system, subscriber unit (Subscriber Unit), subscriber station (Subscriber Station), remote station (Remote Station), access point (Access Point), remote terminal (Remote Terminal), access terminal (Access Terminal ), a user terminal (User Terminal), a user agent (User Agent), a user device (User Device), or a user equipment (User Equipment).

另外,本文中术语“系统”和“网络”在本文中常被可互换使用。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。Additionally, the terms "system" and "network" are often used herein interchangeably. The term "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations. In addition, the character "/" in this article generally indicates that the contextual objects are an "or" relationship.

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

实施例一Embodiment one

请参见图1,本发明实施例提供一种报文转发方法,所述方法的主要流程可以如下:Referring to Fig. 1, an embodiment of the present invention provides a message forwarding method, the main flow of the method may be as follows:

步骤101:将发生故障的第一单板对应的M个地址池块分配给负载分担组中的其他单板。Step 101: Allocate the M address pool blocks corresponding to the first single board in failure to other single boards in the load sharing group.

本发明实施例中,在步骤101之前,可以由控制面先将地址池均匀分配成若干地址池块,并可以对每块地址池进行编号,其中,本发明实施例中,一个地址池块对应的编号就可以称为该地址池块对应的地址池块标识,例如,第一地址池块对应的编号可以称为第一地址池块标识,等等。In the embodiment of the present invention, before step 101, the address pool may be evenly distributed into several address pool blocks by the control plane, and each address pool may be numbered, wherein, in the embodiment of the present invention, one address pool block corresponds to The number corresponding to the address pool block can be called the address pool block identifier corresponding to the address pool block, for example, the number corresponding to the first address pool block can be called the first address pool block identifier, and so on.

其中,地址池中可以包含有若干公网IP地址以及对应的端口号。Wherein, the address pool may include several public network IP addresses and corresponding port numbers.

在对每块地址池进行编号的同时或之后,可以对一个CGN负载分担组中包括的各单板进行编号,之后可以将各地址池块分别下发到各CGN单板上。各CGN单板在接收到属于自己的地址池块后,后续可以将各地址池块中的公网IP地址和端口号分配给不同的报文,而这些报文来自于不同的电子设备,也就相当于为不同的电子设备分配了公网IP地址和端口号。At the same time or after numbering each address pool, each board included in a CGN load sharing group can be numbered, and then each address pool block can be delivered to each CGN board. After each CGN board receives its own address pool block, it can subsequently assign the public network IP addresses and port numbers in each address pool block to different messages, and these messages come from different electronic devices, and also It is equivalent to assigning public network IP addresses and port numbers to different electronic devices.

本发明实施例中,报文中可以携带有源地址和目的地址,其中,所述源地址可以是发送报文的电子设备的私网地址,因此所述源地址也可以称为源私网地址,所述目的地址可以是待接收所述报文的电子设备的公网地址,因此所述目的地址也可以称为目的公网地址。本发明实施例中为报文分配公网IP地址和端口号,相当于根据一报文的源私网地址为该报文分配源公网地址,在为一报文分配源公网地址后,可以根据所述目的公网地址将所述报文进行转发。In the embodiment of the present invention, the message may carry a source address and a destination address, wherein the source address may be the private network address of the electronic device sending the message, so the source address may also be called the source private network address , the destination address may be a public network address of the electronic device to receive the message, so the destination address may also be called a destination public network address. In the embodiment of the present invention, allocating a public network IP address and a port number for a message is equivalent to allocating a source public network address for the message according to the source private network address of a message. After allocating a source public network address for a message, The message may be forwarded according to the destination public network address.

为报文分配源公网地址,相当于将一报文的源私网地址转换为源公网地址,这样所述报文才能在公网中进行传输。Allocating the source public network address to the message is equivalent to converting the source private network address of a message to the source public network address, so that the message can be transmitted in the public network.

本发明实施例中,如果一个CGN负载分担组中最多支持插入的CGN单板个数为第一数量个,那么在将地址池均匀分配成若干地址池块时,可以将地址池均匀分配为所述第一数量块。In the embodiment of the present invention, if the maximum number of CGN single boards that can be inserted in a CGN load sharing group is the first number, then when the address pool is evenly distributed into several address pool blocks, the address pool can be evenly distributed as all The first number of blocks.

在为一个CGN负载分担组中的每个CGN单板分配地址池块时,可以根据具体情况进行分配。When allocating address pool blocks for each CGN single board in a CGN load balancing group, the allocation can be made according to specific conditions.

例如,一个CGN负载分担组最多支持插入的CGN单板的数量为4个,那么可以将地址池均匀分配成4个地址池块。For example, a CGN load balancing group supports a maximum of 4 CGN boards inserted, so the address pool can be evenly distributed into 4 address pool blocks.

如果该CGN负载分担组中实际插入的CGN单板数量为4个,那么可以为这4个CGN单板分别分配一个地址池块。If the number of actually inserted CGN boards in the CGN load balancing group is 4, then an address pool block can be assigned to each of the 4 CGN boards.

如果该CGN负载分担组中实际插入的CGN单板数量为2个,那么可以为这2个CGN单板各分配两个地址池块。If two CGN boards are actually inserted in the CGN load sharing group, two address pool blocks can be assigned to each of the two CGN boards.

如果该CGN负载分担组中实际插入的CGN单板数量为1个,那么可以将这4个地址池块均分配给该CGN单板。If one CGN board is actually inserted in the CGN load balancing group, all the four address pool blocks can be allocated to the CGN board.

如果该CGN负载分担组中实际插入的CGN单板数量为3个,那么可以给其中两个CGN单板分别分配一个地址池块,给剩余的一个CGN单板分配两个地址池块。具体给哪个CGN单板分配两个地址池块,可以随机,或者也可以按照其他规则进行选择。只要符合本发明思想的分配方式均在本发明的保护范围之内。If the number of actually inserted CGN boards in the CGN load balancing group is 3, you can assign one address pool block to two of the CGN boards, and two address pool blocks to the remaining CGN board. Specifically assigning two address pool blocks to which CGN board can be randomly selected, or can also be selected according to other rules. As long as the distribution method conforms to the concept of the present invention, it is within the protection scope of the present invention.

其中,本发明实施例中,为了描述方便,CGN负载分担组可以称为所述负载分担组,CGN单板可以直接称为单板。Wherein, in the embodiment of the present invention, for convenience of description, a CGN load sharing group may be referred to as the load sharing group, and a CGN single board may be directly referred to as a single board.

本发明实施例中,在一个负载分担组中,各单板均未发生故障时,各单板均可正常工作。In the embodiment of the present invention, in a load sharing group, when no fault occurs on each single board, each single board can work normally.

本发明实施例中,在一个负载分担组中,当有单板发生故障时,例如发生故障的单板为所述第一单板,那么所述控制面可以将所述第一单板对应的地址池块分配给所述负载分担组的其他单板,例如,可以将所述M个地址池块均分配给所述负载分担组的另一个单板,或者也可以将所述M个地址池块分配给所述负载分担组中的另外多个单板,即,可以至少将所述M个地址池块分配给该负载分担组中的第二单板,其中,所述第一单板与所述第二单板不是同一单板。In this embodiment of the present invention, in a load sharing group, when a single board fails, for example, the faulty single board is the first single board, then the control plane can set the corresponding Address pool blocks are allocated to other boards in the load sharing group. For example, the M address pool blocks can be allocated to another board in the load sharing group, or the M address pool blocks can also be allocated to other boards in the load sharing group. The blocks are allocated to other multiple boards in the load sharing group, that is, at least the M address pool blocks can be allocated to the second boards in the load sharing group, wherein the first board and The second board is not the same board.

例如,所述第一单板共对应有所述M个地址池块,那么,可以将所述M个地址池块均分配给所述第二单板,即可以将所述第一单板对应的全部地址池块均分配给所述第二单板,以尽量避免地址池资源的浪费。For example, the first single board corresponds to the M address pool blocks, then, the M address pool blocks can be allocated to the second single board, that is, the first single board can be assigned to All address pool blocks are allocated to the second single board, so as to avoid waste of address pool resources as much as possible.

或者例如,所述第一单板共对应有所述M个地址池块,那么,可以将所述M个地址池块中的部分地址池块分配给第二单板,而将所述M个地址池块中的剩余地址池块分配给第三单板,以尽量避免地址池资源的浪费。Or for example, the first single board corresponds to the M address pool blocks, then, part of the address pool blocks in the M address pool blocks can be allocated to the second single board, and the M address pool blocks can be assigned to the second single board. The remaining address pool blocks in the address pool blocks are allocated to the third board, so as to avoid waste of address pool resources as much as possible.

或者例如,所述第一单板共对应有所述M个地址池块,那么,可以将所述M个地址池块分配给其他多个单板。Or for example, the first single board corresponds to the M address pool blocks, then the M address pool blocks may be allocated to other multiple single boards.

具体将发生故障的所述第一单板的各地址池块分配给几个单板,可以任意确定,及,具体将所述第一单板的各地址池块分配给哪个单板,也可以任意确定,理论上来说,只要所选择的单板没有发生故障即可。Specifically assigning each address pool block of the first veneer that has failed to several veneers may be arbitrarily determined, and specifically assigning each address pool block of the first veneer to which veneer may also be It can be determined arbitrarily, theoretically, as long as the selected board does not fail.

步骤102:将第一负载分担表中所述M个地址池块的M个地址池块标识对应的单板的单板标识相应分别更新为被分配的单板标识,获得第二负载分担表。Step 102: Update the board IDs of the boards corresponding to the M address pool block IDs of the M address pool blocks in the first load sharing table to the assigned board IDs respectively, to obtain the second load sharing table.

本发明实施例中,负载分担表可以存在于每个单板上,可以是由所述控制面下发到每个单板上,所述控制面也可以存储有所述负载分担表。例如,一个负载分担组中共具有第二数量个单板,那么在所述第二数量个单板中的每个单板中均可保存有负载分担表。In the embodiment of the present invention, the load sharing table may exist on each board, may be sent to each board by the control plane, and the control plane may also store the load sharing table. For example, if there are a second number of single boards in a load sharing group, each single board in the second number of single boards may store a load sharing table.

本发明实施例中,负载分担表中存储的可以是一个负载分担组中的单板标识与地址池块标识之间的对应关系。例如,如果在一个负载分担组中,地址池块A位于单板1上,那么所述地址池块A对应的单板就是所述单板1,那么在负载分担表中就可以存储有所述地址池块A的地址池块标识A与所述单板1的单板标识1之间的对应关系。In the embodiment of the present invention, what is stored in the load sharing table may be the correspondence between the board identifiers in a load sharing group and the address pool block identifiers. For example, if in a load sharing group, the address pool block A is located on board 1, then the board corresponding to the address pool block A is the board 1, then the load sharing table can store the The corresponding relationship between the address pool block ID A of the address pool block A and the board ID 1 of the board 1 .

本发明实施例中,在将所述M个地址池块分配给所述负载分担组中的其他单板后,可以更新所述第一负载分担表。In the embodiment of the present invention, after the M address pool blocks are allocated to other boards in the load sharing group, the first load sharing table may be updated.

例如,在所述第一负载分担表中所述第一单板对应的标识为第一单板标识,所述第二单板对应的标识为第二单板标识,所述M个地址池块共可以对应于所述M个地址池块标识。For example, in the first load sharing table, the ID corresponding to the first board is the first board ID, the ID corresponding to the second board is the second board ID, and the M address pool blocks It may correspond to the M address pool block identifiers in total.

那么,如果将所述M个地址池块全部分配给了所述第二单板,就可以将所述第一负载分担表中所述第一单板标识与所述M个地址池块标识之间的第一对应关系更新为所述第二单板标识与所述M个地址池块标识之间的第二对应关系。也就是说,令所述M个地址池块对应于所述第二单板,而不再对应于所述第一单板。Then, if all the M address pool blocks are allocated to the second board, the difference between the first board ID and the M address pool block IDs in the first load sharing table can be The first corresponding relationship among them is updated to the second corresponding relationship between the second board identifier and the M address pool block identifiers. That is to say, let the M address pool blocks correspond to the second board instead of corresponding to the first board.

例如,在所述第一负载分担表中所述第一单板对应的标识为第一单板标识,所述第二单板对应的标识为所述第二单板标识,所述第三单板对应的标识为第三单板标识,所述M个地址池块共可以对应于所述M个地址池块标识。For example, in the first load sharing table, the ID corresponding to the first board is the first board ID, the ID corresponding to the second board is the second board ID, and the third board The identifier corresponding to the board is the third board identifier, and the M address pool blocks may correspond to the M address pool block identifiers in total.

那么,如果将所述M个地址池块中的m个地址池块分配给了所述第二单板,而将所述M个地址池块中剩余的n个地址池块分配给了所述第三单板,就可以将所述第一负载分担表中所述第一单板标识与所述M个地址池块标识之间的第一对应关系分别更新为:所述第二单板标识与所述m个地址池块标识之间的第二对应关系,及所述第三单板标识与所述n个地址池块之间的第三对应关系。也就是说,令所述M个地址池块分别对应于所述第二单板和所述第三单板,而不再对应于所述第一单板。Then, if m address pool blocks in the M address pool blocks are allocated to the second board, and the remaining n address pool blocks in the M address pool blocks are allocated to the For the third single board, the first corresponding relationship between the first single board identifier and the M address pool block identifiers in the first load sharing table may be respectively updated as: the second single board identifier A second correspondence between the m address pool block identifiers, and a third correspondence between the third single board identifier and the n address pool blocks. That is to say, let the M address pool blocks correspond to the second single board and the third single board respectively, instead of corresponding to the first single board.

本发明实施例中,一个负载分担组中的每个单板上都可以存储有所述第一负载分担表。In this embodiment of the present invention, each board in a load sharing group may store the first load sharing table.

步骤103:将所述第二负载分担表下发给所述负载分担组中的各单板,以使所述负载分担组中的一单板根据所述第二负载分担表,为收到的报文分配源公网地址,及根据所述报文携带的目的公网地址将所述报文进行转发。Step 103: Send the second load sharing table to each board in the load sharing group, so that a board in the load sharing group is the received The message is assigned a source public network address, and the message is forwarded according to the destination public network address carried in the message.

所述控制面在更新所述第一负载分担表后,可以得到所述第二负载分担表,所述控制面可以将所述第二负载分担表下发给每个单板,以供各单板更新其本地存储的所述第一负载分担表,因此,在更新时,也就相当于更新了每个单板上存储的所述第一负载分担表。After the control plane updates the first load sharing table, it can obtain the second load sharing table, and the control plane can send the second load sharing table to each single board for each single board. The board updates the first load sharing table stored locally. Therefore, when updating, it is equivalent to updating the first load sharing table stored on each single board.

具体的,在所述控制面将所述第二负载分担表下发给各单板后,所述负载分担组中任一个无故障的单板都可能会接收到报文。Specifically, after the control plane sends the second load sharing table to each board, any faultless board in the load sharing group may receive the message.

例如,如果所述负载分担组中的一单板(例如可以称为单板1)接收到来自一电子设备的所述报文,那么所述单板1可以首先确定所述报文对应的第一地址池块的第一地址池块标识,在确定所述第一地址池块标识后,可以根据所述第二负载分担表确定与所述第一地址池块标识对应的单板的单板标识究竟是本单板的单板标识还是其他单板的单板标识。例如确定所述第一地址池块标识对应的单板的单板标识为2,该单板标识对应的单板例如为单板2,如果所述单板1与所述单板2为同一单板,也就是确定所述第一地址池块标识对应的单板的单板标识为本单板的单板标识,即确定所述第一地址池块标识对应的所述第一地址池块位于本单板,那么所述单板1就可以根据本地的所述第一地址池块为所述报文分配所述源公网地址,在为所述报文分配所述源公网地址后,所述单板1可以根据所述报文中携带的所述目的公网地址将所述报文进行转发。For example, if a board (for example, board 1) in the load sharing group receives the message from an electronic device, then the board 1 may first determine the first board corresponding to the message. The first address pool block identifier of an address pool block, after determining the first address pool block identifier, can determine the single board corresponding to the first address pool block identifier according to the second load sharing table Whether the logo is the board logo of the current board or the board logo of other boards. For example, it is determined that the board ID of the board corresponding to the first address pool block ID is 2, and the board corresponding to the board ID is, for example, board 2. If the board 1 and the board 2 are the same board board, that is, determine that the board ID of the board corresponding to the first address pool block ID is the board ID of this board, that is, determine that the first address pool block corresponding to the first address pool block ID is located in This single board, then the single board 1 can allocate the source public network address for the message according to the local first address pool block, after allocating the source public network address for the message, The single board 1 may forward the message according to the destination public network address carried in the message.

例如,如果所述负载分担组中的一单板(例如可以称为单板1)接收到来自一电子设备的所述报文,那么所述单板1可以首先确定所述报文对应的第一地址池块的第一地址池块标识,在确定所述第一地址池块标识后,可以根据所述第二负载分担表确定与所述第一地址池块标识对应的单板的单板标识是本单板的单板标识还是其他单板的单板标识。例如确定所述第一地址池块标识对应的单板的单板标识为2,该单板标识对应的单板例如为单板2,如果所述单板1与所述单板2为不同的单板,也就是确定所述第一地址池块标识对应的单板的单板标识为其他单板的单板标识,即确定所述第一地址池块标识对应的所述第一地址池块位于其他单板,那么所述单板1就可以将所述报文转发给所述单板2。For example, if a board (for example, board 1) in the load sharing group receives the message from an electronic device, then the board 1 may first determine the first board corresponding to the message. The first address pool block identifier of an address pool block, after determining the first address pool block identifier, can determine the single board corresponding to the first address pool block identifier according to the second load sharing table Whether the ID is the board ID of the current board or the board ID of other boards. For example, it is determined that the board ID of the board corresponding to the first address pool block ID is 2, and the board corresponding to the board ID is, for example, board 2, if the board 1 is different from the board 2 A single board, that is, determine that the single board identification of the single board corresponding to the first address pool block identification is the single board identification of other single boards, that is, determine the first address pool block corresponding to the first address pool block identification located on other boards, then the board 1 can forward the message to the board 2.

所述报文到达所述单板2后,所述单板2可以根据所述第一地址池块为所述报文分配一个公网IP地址和一个端口号,即为所述报文分配所述源公网地址。After the message arrives at the single board 2, the single board 2 can allocate a public network IP address and a port number for the message according to the first address pool block, that is, allocate the required port number for the message. The source public network address.

本发明实施例中,一个单板可以为来自同一电子设备的报文分配相同的公网IP地址和相同的端口号,也就是说可以为一个电子设备分配一个固定的公网IP地址和一个固定的端口号,即为一个电子设备分配一个固定的源公网地址。In the embodiment of the present invention, a single board can assign the same public network IP address and the same port number to messages from the same electronic device, that is to say, an electronic device can be assigned a fixed public network IP address and a fixed The port number is to assign a fixed source public network address to an electronic device.

因为所述报文最初携带的是所述电子设备的所述源私网地址,当所述报文到达所述单板2后,所述单板2可以根据所述第一地址池块为所述报文分配一个公网IP地址和一个端口号,也就是说可以为一个私网IP地址分配一个固定的公网IP地址和一个固定的端口号。这样不但可以避免信息在传输过程中发生混乱,避免信息丢失,同时也可以尽量节省公网IP地址资源。Because the message initially carries the source private network address of the electronic device, when the message arrives at the board 2, the board 2 can assign A public network IP address and a port number are assigned to the above-mentioned message, that is to say, a fixed public network IP address and a fixed port number can be assigned to a private network IP address. This can not only avoid information confusion during transmission, avoid information loss, but also save public network IP address resources as much as possible.

具体的,本发明实施例中,在确定所述报文对应的所述第一地址池块的所述第一地址池块标识时,可以采用第一运算规则来进行确定。Specifically, in this embodiment of the present invention, when determining the first address pool block identifier of the first address pool block corresponding to the message, a first operation rule may be used for determination.

具体的,本发明实施例中,所述第一运算规则可以是:当输入信息相同时,输出信息也相同。Specifically, in the embodiment of the present invention, the first operation rule may be: when the input information is the same, the output information is also the same.

较佳的,本发明实施例中,所述第一运算规则可以是哈希(Hash)运算规则,或者所述第一运算规则也可以是其他运算规则。Preferably, in the embodiment of the present invention, the first operation rule may be a hash (Hash) operation rule, or the first operation rule may also be other operation rules.

具体的,本发明实施例中,如果所述第一运算规则是哈希运算规则,那么所述第一运算规则具体可以是:将所述源私网地址作为哈希函数的输入值,所述哈希函数的输出值即为所述第一地址池块标识。其中,对于哈希函数来说,当输入信息相同时,输出信息也相同,即,当输入的源私网地址相同时,输出的地址池块标识也就相同。Specifically, in the embodiment of the present invention, if the first operation rule is a hash operation rule, then the first operation rule may specifically be: using the source private network address as the input value of the hash function, the The output value of the hash function is the block identifier of the first address pool. Among them, for the hash function, when the input information is the same, the output information is also the same, that is, when the input source private network addresses are the same, the output address pool block identifiers are also the same.

例如,如果所述第一运算规则为哈希运算规则,那么,所述报文携带的所述源私网地址可以作为哈希函数的输入值,该哈希函数的输出值就可以是相应的地址池块标识。For example, if the first operation rule is a hash operation rule, then the source private network address carried in the message can be used as the input value of the hash function, and the output value of the hash function can be the corresponding Address pool block ID.

例如,本发明实施例中,所述单板1在确定所述第一地址池块标识后,如果确定所述第一地址池块标识对应的单板的单板标识为2,该单板标识对应的单板为单板2,且所述单板2与所述单板1为不同的单板,则所述单板1可以根据所述第二负载分担表,将所述报文转发给所述单板2。其中,所述第一地址池块可以是原来位于所述第一单板中的地址池块,或者所述第一地址池块也可以不是原来位于所述第一单板中的地址池块。For example, in the embodiment of the present invention, after the board 1 determines the first address pool block ID, if it is determined that the board ID of the board corresponding to the first address pool block ID is 2, the board ID The corresponding single board is single board 2, and the single board 2 and the single board 1 are different single boards, then the single board 1 can forward the message to the The veneer 2. Wherein, the first address pool block may be the address pool block originally located in the first single board, or the first address pool block may not be the address pool block originally located in the first single board.

本发明实施例中,在将所述报文转发给所述单板2后,所述单板2可以为所述报文分配所述源公网地址,且所述单板2可以根据所述报文携带的目的公网地址将所述报文进行转发。In the embodiment of the present invention, after forwarding the message to the veneer 2, the veneer 2 can allocate the source public network address for the message, and the veneer 2 can The destination public network address carried in the message forwards the message.

进一步的,在本发明另一实施例中,将所述第二负载分担表下发给所述负载分担组中的各单板后,如果所述第一单板故障恢复,那么在所述第一单板故障恢复后,所述控制面可以为所述第一单板重新分配地址池块。Further, in another embodiment of the present invention, after the second load sharing table is sent to each board in the load sharing group, if the first board recovers from failure, then the After a single board fails and recovers, the control plane may reallocate an address pool block for the first single board.

本发明实施例中,在所述第一单板故障恢复后,所述控制面可以从该负载分担组中除所述第一单板外的其他单板中选择至少一个目标单板,可以将选择的每个目标单板对应的部分地址池块分配给所述第一单板,并令每个目标单板将分配给所述第一单板的地址池块对应的地址池块信息发送给所述第一单板,将所述第二负载分担表中分配给所述第一单板的地址池块的地址池块标识对应的单板的单板标识更新为所述第一单板标识,获得第三负载分担表,将所述第三负载分担表下发给所述负载分担组中的各单板。In this embodiment of the present invention, after the failure of the first single board is restored, the control plane may select at least one target single board from other single boards in the load sharing group except the first single board, and may use The selected part of the address pool block corresponding to each target board is allocated to the first board, and each target board sends the address pool block information corresponding to the address pool block allocated to the first board to the The first single board, updating the single board identification of the single board corresponding to the address pool block identifier of the address pool block allocated to the first single board in the second load sharing table to the first single board identification , obtain a third load sharing table, and issue the third load sharing table to each board in the load sharing group.

例如,选择了将单板3中的地址池块分配给所述第一单板,那么要保证在分配之后单板3中还具有至少一个地址池块,也就是说,单板3分配给所述第一单板的是自身的部分地址池块。For example, if the address pool block in board 3 is selected to be allocated to the first board, then it must be ensured that there is at least one address pool block in board 3 after allocation, that is, the address pool block in board 3 is allocated to all The first single board refers to its own part of the address pool block.

较佳的,本发明实施例中,在将选择的每个目标单板对应的部分地址池块分配给所述第一单板之后,可以删除每个目标单板中分配给所述第一单板的地址池块。例如,如果将单板B的地址池块1和地址池块2分配给了所述第一单板,那么可以删除所述单板B中的所述地址池块1和所述地址池块2。因为当有报文被转发给所述单板B时,所述单板B会根据自身具有的地址池块来为所述报文分配源公网地址,删除分配给所述第一单板的所述地址池块1和所述地址池块2,可以避免所述单板B再次根据所述地址池块1或所述地址池块2为收到的报文分配源公网地址。Preferably, in this embodiment of the present invention, after allocating part of the address pool blocks corresponding to each selected target board to the first board, the addresses allocated to the first board in each target board can be deleted. The address pool block of the board. For example, if address pool block 1 and address pool block 2 of board B are allocated to the first board, then address pool block 1 and address pool block 2 in board B may be deleted . Because when a message is forwarded to the board B, the board B will allocate a source public network address for the message according to its own address pool block, and delete the address assigned to the first board. The address pool block 1 and the address pool block 2 can prevent the single board B from allocating the source public network address for the received message according to the address pool block 1 or the address pool block 2 again.

可选的,在所述第一单板故障恢复后,为所述第一单板重新分配地址池块时,可以将所述第一单板原本具有的所述M个地址池块重新分配给所述第一单板,即可以将在所述第一单板出故障时分配给所述负载分担表中的其他单板的所述M个地址池块重新分配给所述第一单板。Optionally, after the first single board recovers from failure, when reassigning address pool blocks to the first single board, the M address pool blocks originally owned by the first single board may be reassigned to The first single board may reassign to the first single board the M address pool blocks allocated to other single boards in the load sharing table when the first single board fails.

可选的,在所述第一单板故障恢复后,为所述第一单板重新分配地址池块时,可以在所述负载分担组中除所述第一单板外的其他单板中任意选择目标单板,将选择的每个目标单板中的部分地址池块分配给所述第一单板。Optionally, when the address pool block is reassigned to the first board after the fault recovery of the first board, other boards in the load sharing group except the first board may Randomly select target boards, and allocate part of address pool blocks in each selected target board to the first board.

例如,所述负载分担组中共有第一单板、第二单板、第三单板和第四单板,在所述第一单板发生故障时,将所述第一单板具有的所述M个地址池块均分配给了所述第二单板。For example, the load sharing group shares the first board, the second board, the third board and the fourth board, and when the first board fails, all the The M address pool blocks are all allocated to the second single board.

在所述第一单板故障恢复后,可以在所述负载分担组中选择目标单板,可选的目标单板为所述第二单板、所述第三单板和所述第四单板。例如,如果所述第二单板具有三个地址池块,所述第三单板具有两个地址池块,所述第四单板具有一个地址池块,那么所述第四单板不能作为目标单板,可选的目标单板为所述第二单板和所述第三单板。After the failure of the first single board is recovered, a target single board can be selected in the load sharing group, and the optional target single boards are the second single board, the third single board and the fourth single board plate. For example, if the second board has three address pool blocks, the third board has two address pool blocks, and the fourth board has one address pool block, then the fourth board cannot serve as The target single board, where the optional target single boards are the second single board and the third single board.

此时,可以从所述第二单板中任选一个地址池块分配给所述第一单板,或者可以从所述第二单板中任选两个地址池块分配给所述第一单板,或者可以从所述第三单板中任选一个地址池块分配给所述第一单板,或者可以从所述第二单板中任选一个地址池块分配给所述第一单板、及从所述第三单板中任选一个地址池块分配给所述第一单板。At this time, one address pool block from the second board can be randomly assigned to the first board, or two address pool blocks can be selected from the second board to be assigned to the first board. single board, or select an address pool block from the third single board to allocate to the first single board, or select an address pool block from the second single board to allocate to the first single board A single board, and an address pool block selected from the third single board is allocated to the first single board.

也就是说,在所述第一单板故障恢复时,可以为所述第一单板只分配一个地址池块,或者可以为所述第一单板分配第二数量个地址池块,所述第二数量可以是所述第一单板在出故障之前本身具有的地址池块的数量,或者也可以为所述第一单板分配第三数量个地址池块,所述第三数量可以大于所述第一单板在出故障之前本身具有的地址池块的数量。具体分配方式本发明不做限制。That is to say, when the first single board recovers from a fault, only one address pool block may be allocated to the first single board, or a second number of address pool blocks may be allocated to the first single board, and the The second number may be the number of address pool blocks that the first single board had before failure, or a third number of address pool blocks may be allocated to the first single board, and the third number may be greater than The number of address pool blocks that the first single board has before failure. The specific distribution method is not limited in the present invention.

并且,在所述第一单板故障恢复后为所述第一单板分配地址池块时,可以只从所述第二单板中为所述第一单板进行分配,或者也可以从其他单板中为所述第一单板进行分配,或者也可以同时从所述第二单板和其他单板中为所述第一单板进行分配。所述第二单板为:所述第一单板出故障时将自身的地址池块分配到的单板。具体分配方式本发明不做限制。Moreover, when the address pool block is allocated to the first single board after the fault recovery of the first single board, the address pool block may only be allocated to the first single board from the second single board, or may be allocated from other The first board may be allocated among the boards, or the first board may be allocated from the second board and other boards at the same time. The second single board is: a single board to which its own address pool block is allocated when the first single board fails. The specific distribution method is not limited in the present invention.

较佳的,本发明实施例中,在为所述第一单板重新分配地址池块的同时或之后,还可以更新所述第二负载分担表。例如,可以将所述第二负载分担表中重新分配给所述第一单板的各地址池块的地址池块标识对应的单板的单板标识均更新为所述第一单板标识,即在所述第二负载分担表中令重新分配给所述第一单板的各地址池块的地址池块标识均对应于所述第一单板标识,表明这些地址池块位于所述第一单板中,在将所述第二负载分担表进行更新后,可以获得第三负载分担表。Preferably, in the embodiment of the present invention, the second load sharing table may be updated at the same time or after the address pool block is reassigned to the first single board. For example, the single board identifiers of the single boards corresponding to the address pool block identifiers of the address pool blocks reassigned to the first single board in the second load sharing table may be updated to the first single board identifier, That is, in the second load sharing table, the address pool block identifiers of the address pool blocks reassigned to the first single board are all corresponding to the first single board identifier, indicating that these address pool blocks are located in the first single board. In a single board, after updating the second load sharing table, a third load sharing table may be obtained.

例如,在重新进行分配时,将所述负载分担组中所述第二单板中的地址池块A分配给了所述第一单板,及将所述负载分担组中所述第三单板中的地址池块B分配给了所述第一单板。那么,在分配的同时或之后可以更新所述第二负载分担表。在所述第二负载分担表中,所述地址池块A的地址池块标识A对应于所述第二单板的所述第二单板标识,所述地址池块B的地址池块标识B对应于所述第三单板的第三单板标识,那么在将所述第二负载分担表进行更新后获得的所述第三负载分担表中,所述地址池块A的地址池块标识A对应于所述第一单板的所述第一单板标识,所述地址池块B的地址池块标识B也对应于所述第一单板的所述第一单板标识。For example, when redistributing, the address pool block A in the second single board in the load sharing group is allocated to the first single board, and the address pool block A in the third single board in the load sharing group is allocated to the first single board. The address pool block B in the board is allocated to the first single board. Then, the second load sharing table may be updated at the same time as or after the allocation. In the second load sharing table, the address pool block ID A of the address pool block A corresponds to the second board ID of the second board, and the address pool block ID of the address pool block B B corresponds to the third board identifier of the third board, then in the third load sharing table obtained after updating the second load sharing table, the address pool block of the address pool block A The identifier A corresponds to the first board identifier of the first board, and the address pool block identifier B of the address pool block B also corresponds to the first board identifier of the first board.

较佳的,本发明实施例中,在将选择的每个目标单板对应的部分地址池块分配给所述第一单板后,还可以将分配给所述第一单板的地址池块对应的地址池块信息发送给所述第一单板。Preferably, in the embodiment of the present invention, after allocating part of the address pool blocks corresponding to each selected target board to the first board, the address pool blocks assigned to the first board can also be The corresponding address pool block information is sent to the first single board.

本发明实施例中,所述地址池块信息至少可以包括用户表信息和/或流表信息。In the embodiment of the present invention, the address pool block information may at least include user table information and/or flow table information.

本发明实施例中,一个单板可以针对一个电子设备建立一个用户表信息及至少一个流表信息。例如,单板1为一个报文分配了源公网地址,那么所述单板1就可以针对发送该报文的电子设备建立一个用户表信息及至少一个流表信息。In the embodiment of the present invention, a single board can establish a user table information and at least one flow table information for an electronic device. For example, the board 1 allocates a source public network address to a message, then the board 1 can establish a user table information and at least one flow table information for the electronic device sending the message.

即,对于一个单板来说,其可以存储有多个用户表信息及相应的流表信息。本发明实施例中,所述地址池块信息可以包括至少一个用户表信息和/或相应的流表信息。That is, for a single board, it may store multiple user table information and corresponding flow table information. In the embodiment of the present invention, the address pool block information may include at least one piece of user table information and/or corresponding flow table information.

例如,所述用户表信息中可以存储有相应的电子设备对应的信息,例如可以存储有相应的源私网地址与相应源公网地址之间的对应关系,而一个源私网地址就可以对应于一个电子设备。For example, the user table information may store information corresponding to the corresponding electronic device, for example, the corresponding relationship between the corresponding source private network address and the corresponding source public network address may be stored, and a source private network address may correspond to on an electronic device.

例如,所述流表信息中不仅可以包括有相应的电子设备对应的信息,还可以包括有每个电子设备对应的流量信息,等等。For example, the flow table information may include not only information corresponding to a corresponding electronic device, but also flow information corresponding to each electronic device, and so on.

每个单板在工作时,可以是根据相应的地址池块信息来进行工作。When each single board is working, it can work according to the corresponding address pool block information.

那么,本发明实施例中,在将选择的每个目标单板对应的部分地址池块分配给所述第一单板后,还可以将分配给所述第一单板的地址池块对应的地址池块信息发送给所述第一单板,从而可以保证所述第一单板根据相应的地址池块信息继续进行正常工作,对于用户来说,其基本感觉不到单板有何变化,单板出故障基本不会影响到用户的使用,能够显著提高用户体验。Then, in the embodiment of the present invention, after allocating part of the address pool blocks corresponding to each selected target board to the first board, the address pool blocks corresponding to the first board can also be assigned Address pool block information is sent to the first veneer, so as to ensure that the first veneer continues to work normally according to the corresponding address pool block information. For users, they basically do not feel any changes in the veneer. A single board failure will basically not affect the user's use, which can significantly improve the user experience.

例如,选择的目标单板为所述第二单板,将所述第二单板中的地址池块A和地址池块B分配给了所述第一单板,那么在将所述地址池块A和所述地址池块B分配给所述第一单板后,还可以将原来存储在所述第二单板中的所述地址池块A对应的地址池块信息A和所述地址池块B对应的地址池块信息B均发送给所述第一单板。For example, the selected target board is the second board, and address pool block A and address pool block B in the second board are allocated to the first board, then the address pool After the block A and the address pool block B are allocated to the first board, the address pool block information A corresponding to the address pool block A originally stored in the second board and the address The address pool block information B corresponding to the pool block B is sent to the first single board.

例如,选择的目标单板为所述第二单板和所述第三单板,将所述第二单板中的地址池块A分配给了所述第一单板,及将所述第三单板中的地址池块B分配给了所述第一单板。那么,在将所述地址池块A和所述地址池块B分配给所述第一单板后,还可以将原来存储在所述第二单板中的所述地址池块A对应的地址池块信息A发送给所述第一单板,及将原来存储在所述第三单板中的所述地址池块B对应的地址池块信息B发送给所述第一单板。For example, the selected target boards are the second board and the third board, the address pool block A in the second board is allocated to the first board, and the address pool block A in the second board is assigned Address pool block B in the three boards is allocated to the first board. Then, after the address pool block A and the address pool block B are allocated to the first board, the address corresponding to the address pool block A originally stored in the second board can also be The pool block information A is sent to the first board, and the address pool block information B corresponding to the address pool block B originally stored in the third board is sent to the first board.

而在将所述M个地址池块分配给所述第二单板时,因所述第一单板已出现故障,无法将所述M个地址池块对应的M个地址池块信息发送给所述第二单板,因此,所述第二单板在获得所述M个地址池块后,可以为所述M个地址池块分别重新建立相应的地址池块信息。When the M address pool blocks are allocated to the second board, because the first board has failed, the M address pool block information corresponding to the M address pool blocks cannot be sent to the The second single board, therefore, after obtaining the M address pool blocks, the second single board may re-establish corresponding address pool block information for the M address pool blocks.

较佳的,本发明实施例中,在将分配给所述第一单板的地址池块对应的地址池块信息发送给所述第一单板之后,所述控制面可以将所述第一单板重新加入所述第三负载分担表对应的所述负载分担组,以使所述第一单板重新开始工作。一般来说,一个负载分担表可以对应一个负载分担组,该负载分担表中可以包括该负载分担组中各单板标识与各地址池块标识之间的对应关系。Preferably, in the embodiment of the present invention, after sending the address pool block information corresponding to the address pool block allocated to the first board to the first board, the control plane may send the first The single board rejoins the load sharing group corresponding to the third load sharing table, so that the first single board starts working again. Generally speaking, a load sharing table may correspond to a load sharing group, and the load sharing table may include the correspondence between each board ID and each address pool block ID in the load sharing group.

较佳的,本发明实施例中,在将分配给所述第一单板的地址池块对应的地址池块信息发送给所述第一单板之后,还可以删除每个目标单板中分配给所述第一单板的各地址池块对应的地址池块信息。Preferably, in the embodiment of the present invention, after the address pool block information corresponding to the address pool block allocated to the first board is sent to the first board, the allocation in each target board can also be deleted. Address pool block information corresponding to each address pool block of the first single board.

例如,选择的目标单板为所述第二单板,将所述第二单板中的地址池块A和地址池块B分配给了所述第一单板,那么在将所述地址池块A和所述地址池块B分配给所述第一单板后,还可以将原来存储在所述第二单板中的所述地址池块A对应的地址池块信息A和所述地址池块B对应的地址池块信息B均发送给所述第一单板。在将所述地址池块信息A和所述地址池块信息B均发送给所述第一单板后,可以在所述第二单板中删除所述地址池块信息A和所述地址池块信息B,以节省所述第二单板中的存储空间。For example, the selected target board is the second board, and address pool block A and address pool block B in the second board are allocated to the first board, then the address pool After the block A and the address pool block B are allocated to the first board, the address pool block information A corresponding to the address pool block A originally stored in the second board and the address The address pool block information B corresponding to the pool block B is sent to the first single board. After sending both the address pool block information A and the address pool block information B to the first board, the address pool block information A and the address pool may be deleted in the second board Block information B, to save storage space in the second single board.

例如,选择的目标单板为所述第二单板和所述第三单板,将所述第二单板中的地址池块A分配给了所述第一单板,及将所述第三单板中的地址池块B分配给了所述第一单板。那么,在将所述地址池块A和所述地址池块B分配给所述第一单板后,还可以将原来存储在所述第二单板中的所述地址池块A对应的地址池块信息A发送给所述第一单板,及将原来存储在所述第三单板中的所述地址池块B对应的地址池块信息B发送给所述第一单板。在将所述地址池块信息A和所述地址池块信息B均发送给所述第一单板后,可以在所述第二单板中删除所述地址池块信息A,和在所述第三单板中删除所述地址池块信息B,以节省所述第二单板和所述第三单板中的存储空间。For example, the selected target boards are the second board and the third board, the address pool block A in the second board is allocated to the first board, and the address pool block A in the second board is assigned Address pool block B in the three boards is allocated to the first board. Then, after the address pool block A and the address pool block B are allocated to the first board, the address corresponding to the address pool block A originally stored in the second board can also be The pool block information A is sent to the first board, and the address pool block information B corresponding to the address pool block B originally stored in the third board is sent to the first board. After sending both the address pool block information A and the address pool block information B to the first board, the address pool block information A may be deleted in the second board, and the The address pool block information B is deleted from the third board to save storage space on the second board and the third board.

实施例二Embodiment two

请参见图2,本发明实施例提供一种报文转发方法,所述方法的主要流程如下:Referring to Fig. 2, the embodiment of the present invention provides a message forwarding method, the main process of the method is as follows:

步骤201:在获得第二负载分担表后,获得来自一电子设备的报文,所述报文中至少携带有源私网地址及目的公网地址。Step 201: After obtaining the second load sharing table, obtain a message from an electronic device, where the message at least carries an active private network address and a destination public network address.

本发明实施例中,在一个负载分担组中,当有单板发生故障时,例如发生故障的单板为所述第一单板,那么所述控制面可以将所述第一单板对应的M个地址池块分配给所述负载分担组的其他单板,在将所述M个地址池块分配给所述负载分担组中的其他单板后,所述控制面可以更新所述第一负载分担表,例如可以将所述第一负载分担表中所述M个地址池块的M个地址池块标识对应的单板的单板标识相应分别更新为被分配的单板标识,获得第二负载分担表。In this embodiment of the present invention, in a load sharing group, when a single board fails, for example, the faulty single board is the first single board, then the control plane can set the corresponding M address pool blocks are allocated to other boards in the load sharing group, and after the M address pool blocks are allocated to other boards in the load sharing group, the control plane may update the first In the load sharing table, for example, the board IDs of the boards corresponding to the M address pool block IDs of the M address pool blocks in the first load sharing table may be respectively updated to the assigned board IDs, and the first Two load sharing table.

在将所述第一负载分担表进行更新后,可以获得所述第二负载分担表。且,所述控制面可以将所述第二负载分担表下发给所述负载分担组中的各单板。After the first load sharing table is updated, the second load sharing table can be obtained. In addition, the control plane may issue the second load sharing table to each board in the load sharing group.

所述负载分担表中的各单板在获得所述第二负载分担表后,均可以继续接收报文。Each single board in the load sharing table can continue to receive messages after obtaining the second load sharing table.

例如,所述负载分担组中的单板1在获得所述第二负载分担表后,接收到了所述报文,所述报文中可以携带有发送所述报文的电子设备对应的源私网地址,及待接收所述报文的电子设备对应的目的公网地址。For example, after board 1 in the load sharing group receives the message after obtaining the second load sharing table, the message may carry the source private information corresponding to the electronic device sending the message. network address, and the destination public network address corresponding to the electronic device to receive the message.

步骤202:将所述源私网地址按照第一运算规则进行处理,获得相应的地址池块标识;其中,所述第一运算规则为:当输入信息相同时,输出信息也相同。Step 202: Process the source private network address according to a first operation rule to obtain a corresponding address pool block identifier; wherein, the first operation rule is: when the input information is the same, the output information is also the same.

本发明实施例中,所述单板1在接收到所述报文后,可以将所述源私网地址按照所述第一运算规则进行处理。In the embodiment of the present invention, after receiving the message, the single board 1 may process the source private network address according to the first operation rule.

较佳的,本发明实施例中,所述第一运算规则可以是哈希(Hash)运算规则,或者所述第一运算规则也可以是其他运算规则。Preferably, in the embodiment of the present invention, the first operation rule may be a hash (Hash) operation rule, or the first operation rule may also be other operation rules.

具体的,本发明实施例中,如果所述第一运算规则是哈希运算规则,那么所述第一运算规则具体可以是:将所述源私网地址作为哈希函数的输入值,所述哈希函数的输出值即为所述第一地址池块标识。其中,对于哈希函数来说,当输入信息相同时,输出信息也相同,即,当输入的源私网地址相同时,输出的地址池块标识也就相同。Specifically, in the embodiment of the present invention, if the first operation rule is a hash operation rule, then the first operation rule may specifically be: using the source private network address as the input value of the hash function, the The output value of the hash function is the block identifier of the first address pool. Among them, for the hash function, when the input information is the same, the output information is also the same, that is, when the input source private network addresses are the same, the output address pool block identifiers are also the same.

本发明实施例中,之所以可以选择哈希运算规则作为所述第一运算规则,因为对于哈希运算规则来说,只要输入值相同,输出值就会相同。例如,如果有两个报文,只要这两个报文都来自一个电子设备,那么这两个报文对应的电子设备的源私网地址就相同,将这两个源私网地址分别通过哈希运算规则进行处理后,所获得的两个输出值会相同,也就是得到的地址池块标识相同。这样能够保证来自一个电子设备的报文能够始终转发到同一个地址池块进行处理,即能够保证为一个电子设备只需分配一个公网IP地址和一个端口号即可,尽量节省了公网IP地址。In the embodiment of the present invention, the hash operation rule can be selected as the first operation rule, because for the hash operation rule, as long as the input values are the same, the output values will be the same. For example, if there are two messages, as long as the two messages come from an electronic device, the source private network addresses of the electronic devices corresponding to the two messages are the same, and the two source private network addresses are respectively passed through the hash After processing by the Greek operation rule, the two obtained output values will be the same, that is, the obtained address pool block identifiers will be the same. This can ensure that the message from an electronic device can always be forwarded to the same address pool block for processing, that is, it can ensure that an electronic device only needs to be assigned a public network IP address and a port number, saving the public network IP as much as possible address.

因此,本发明实施例中,在选择所述第一运算规则时,一个选择条件可以是保证所述第一运算规则能够在输入值相同时得到相同的输出值即可,凡是符合此条件的所述第一运算规则均在本发明的保护范围之内。Therefore, in the embodiment of the present invention, when selecting the first operation rule, a selection condition may be to ensure that the first operation rule can obtain the same output value when the input value is the same, and all those that meet this condition The above-mentioned first operation rules are all within the protection scope of the present invention.

例如,本发明实施例中,所述单板1在确定所述第一地址池块标识后,可以根据所述第二负载分担表,确定所述第一地址池块标识对应的单板的单板标识为2,该单板标识对应的单板为单板2,则所述单板1可以确定所述报文对应的单板为所述单板2。For example, in this embodiment of the present invention, after the board 1 determines the first address pool block ID, it can determine the unit number of the board corresponding to the first address pool block ID according to the second load sharing table. The board identifier is 2, and the board corresponding to the board identifier is board 2, then the board 1 may determine that the board corresponding to the message is the board 2.

其中,所述第一地址池块可以是原来位于所述第一单板中的地址池块,或者所述第一地址池块也可以不是原来位于所述第一单板中的地址池块。Wherein, the first address pool block may be the address pool block originally located in the first single board, or the first address pool block may not be the address pool block originally located in the first single board.

步骤203:根据所述第二负载分担表,通过所述地址池块标识对应的地址池块为所述报文分配源公网地址,及根据所述目的公网地址将所述报文进行转发。Step 203: According to the second load sharing table, allocate a source public network address for the message through the address pool block corresponding to the address pool block identifier, and forward the message according to the destination public network address .

所述单板1在确定所述第一地址池块标识后,可以根据所述第二负载分担表确定所述第一地址池块标识对应的单板的单板标识是本单板的单板标识还是其他单板的单板标识,如果确定所述第一地址池块标识对应的单板的单板标识为本单板单板标识,相当于可以确定所述第一地址池块位于本单板,那么所述单板1可以根据所述第一地址池块为所述报文分配所述源公网地址,在分配所述源公网地址后,可以根据所述报文中携带的所述目的公网地址将所述报文进行转发。After the single board 1 determines the first address pool block identifier, it may determine according to the second load sharing table that the single board identifier of the single board corresponding to the first address pool block identifier is the single board of this single board The identification is still the single board identification of other single boards. If it is determined that the single board identification of the single board corresponding to the first address pool block identification is the single board identification of this single board, it is equivalent to determining that the first address pool block is located in this single board. board, then the single board 1 may allocate the source public network address for the message according to the first address pool block, and after allocating the source public network address, it may The destination public network address forwards the message.

所述单板1在确定所述第一地址池块标识后,可以根据所述第二负载分担表确定所述第一地址池块标识对应的单板的单板标识是本单板的单板标识还是其他单板的单板标识,如果确定所述第一地址池块标识对应的单板的单板标识是其他单板的单板标识,例如所述第一地址池块标识对应的单板的单板标识为2,该单板标识对应的单板为单板2,相当于可以确定所述第一地址池块位于所述单板2,那么所述单板1可以将所述报文转发给所述单板2。After the single board 1 determines the first address pool block identifier, it may determine according to the second load sharing table that the single board identifier of the single board corresponding to the first address pool block identifier is the single board of this single board The ID is also the board ID of other boards. If it is determined that the board ID of the board corresponding to the first address pool block ID is the board ID of other boards, for example, the board corresponding to the first address pool block ID The veneer ID of the veneer is 2, and the veneer corresponding to the veneer identification is veneer 2, which means that it can be determined that the first address pool block is located on the veneer 2, then the veneer 1 can transmit the message forwarded to the veneer 2.

本发明实施例中,在将所述报文转发给所述单板2后,所述单板2可以为所述报文分配所述源公网地址,且所述单板2可以根据所述报文携带的目的公网地址将所述报文进行转发。In the embodiment of the present invention, after forwarding the message to the veneer 2, the veneer 2 can allocate the source public network address for the message, and the veneer 2 can The destination public network address carried in the message forwards the message.

以下用一个具体的实施例来介绍本发明中的信息转发方法。The following uses a specific embodiment to introduce the information forwarding method in the present invention.

实施例三Embodiment three

本发明实施例中,所述负载分担组中共可以支持插入4块单板,因此所述控制面将地址池均匀分配成4个地址池块,并将这4个地址池块分别编号为1、2、3、4。其中每个地址池块的编号可以称为该地址池块的地址池块标识。且,本发明实施例中也对实际插入的4个单板进行了编号,例如这4个单板的编号分别为a、b、c、d,其中每个单板的编号可以称为该单板的单板标识。In the embodiment of the present invention, the load sharing group can support the insertion of 4 single boards, so the control plane evenly distributes the address pool into 4 address pool blocks, and numbers the 4 address pool blocks as 1, 2, 3, 4. The number of each address pool block may be referred to as the address pool block identifier of the address pool block. Moreover, in the embodiment of the present invention, the actually inserted four boards are also numbered, for example, the numbers of these four boards are respectively a, b, c, and d, and the number of each board can be referred to as the single board Board ID of the board.

在为这4个地址池块和这4个单板均进行编号后,可以为每个单板分配相应的地址池块。本发明实施例中,因为共有4个地址池块及共有4个单板,因此可以为每个单板分配一个地址池块。可以根据分配结果构造第一负载分担表,例如所述第一负载分担表可以如表1所示:After numbering the four address pool blocks and the four boards, a corresponding address pool block can be assigned to each board. In the embodiment of the present invention, since there are 4 address pool blocks and 4 single boards in total, one address pool block can be allocated to each single board. The first load sharing table can be constructed according to the distribution result, for example, the first load sharing table can be as shown in Table 1:

表1Table 1

对应关系Correspondence 地址池块address pool block 单板veneer 对应关系1Correspondence 1 11 aa 对应关系2Correspondence 2 22 bb 对应关系3Correspondence 3 33 cc 对应关系4Correspondence 4 44 dd

表1中的对应关系1表示单板a的单板标识a与地址池块1的地址池块标识1的对应关系,表1中的对应关系2表示单板b的单板标识b与地址池块2的地址池块标识2的对应关系,表1中的对应关系3表示单板c的单板标识c与地址池块3的地址池块标识3的对应关系,表1中的对应关系4表示单板d的单板标识d与地址池块4的地址池块标识4的对应关系。The correspondence 1 in Table 1 indicates the correspondence between the board ID a of the board a and the address pool block ID 1 of the address pool block 1, and the correspondence 2 in Table 1 indicates the board ID b of the board b and the address pool The corresponding relationship between the address pool block ID 2 of block 2, the corresponding relationship 3 in Table 1 indicates the corresponding relationship between the single board ID c of the single board c and the address pool block ID 3 of the address pool block 3, and the corresponding relationship 4 in Table 1 Indicates the correspondence between the board ID d of the board d and the address pool block ID 4 of the address pool block 4 .

即,本发明实施例中,将地址池块1分配给了单板a,将地址池块2分配给了单板b,将地址池块3分配给了单板c,将地址池块4分配给了单板d。That is, in the embodiment of the present invention, address pool block 1 is assigned to board a, address pool block 2 is assigned to board b, address pool block 3 is assigned to board c, and address pool block 4 is assigned Gave veneer d.

在第一时刻,所述单板d出现了故障,此时,可以将所述单板d对应的地址池块4分配给其他单板。例如,本发明实施例中,可以将所述地址池块4分配给单板c。At the first moment, the single board d fails, and at this time, the address pool block 4 corresponding to the single board d can be allocated to other single boards. For example, in this embodiment of the present invention, the address pool block 4 may be allocated to the single board c.

在分配之后,可以更新所述第一负载分担表。可以将表1所示的所述第一负载分担表中所述单板标识d与所述地址池块4标识之间的对应关系更新为所述单板标识c与所述地址池块4标识之间的所述对应关系。更新之后得到的第二负载分担表可以如表2所示:After allocation, the first load sharing table may be updated. The corresponding relationship between the single board identifier d and the address pool block 4 identifier in the first load sharing table shown in Table 1 may be updated to the single board identifier c and the address pool block 4 identifier The corresponding relationship between. The second load sharing table obtained after the update can be shown in Table 2:

表2Table 2

对应关系Correspondence 地址池块address pool block 单板veneer 对应关系1Correspondence 1 11 aa 对应关系2Correspondence 2 22 bb 对应关系3Correspondence 3 33 cc 对应关系4Correspondence 4 44 cc

从表2中可以看出,在将所述第一负载分担表更新后,所述地址池块4对应于所述单板c,而不再对应于所述单板d。It can be seen from Table 2 that after the first load sharing table is updated, the address pool block 4 corresponds to the single board c and no longer corresponds to the single board d.

所述控制面将所述第二负载分担表下发给所述负载分担组中的各单板,即下发给所述单板a、所述单板b及所述单板c。The control plane sends the second load sharing table to each board in the load sharing group, that is, to the board a, the board b, and the board c.

在所述第一负载分担表进行更新后,在第一时刻,所述单板a接收到一报文A,所述报文A来自一电子设备A,所述报文A中携带有所述电子设备A的所述源私网地址,及待接收所述报文A的电子设备C对应的目的公网地址,例如所述源私网地址可以是所述电子设备A的私网IP地址,例如所述目的公网地址可以是所述电子设备C的公网IP地址。After the first load sharing table is updated, at the first moment, the single board a receives a message A, the message A comes from an electronic device A, and the message A carries the The source private network address of the electronic device A, and the destination public network address corresponding to the electronic device C to receive the message A, for example, the source private network address may be the private network IP address of the electronic device A, For example, the destination public network address may be the public network IP address of the electronic device C.

所述单板a在接收到所述报文A后,可以将所述源私网地址按照第一运算规则进行处理,例如本发明实施例中所述第一运算规则可以是哈希运算规则。After receiving the message A, the board a may process the source private network address according to a first operation rule, for example, the first operation rule in the embodiment of the present invention may be a hash operation rule.

本发明实施例中,所述源私网地址可以是哈希函数的输入值,在根据所述源私网地址进行哈希运算后,该哈希函数的输出值可以是一地址池块标识,例如该地址池块标识可以是如表2中所示的地址池块标识2。那么可以继续确定所述地址池块标识2对应的单板的单板标识是本单板的单板标识还是其他单板的单板标识,本发明实施例中可以确定所述地址池块标识2对应的单板的单板标识为2,该单板标识对应的单板为单板b,因此可以确定所述报文A需要转发至所述单板b。In the embodiment of the present invention, the source private network address may be an input value of a hash function, and after the hash operation is performed according to the source private network address, the output value of the hash function may be an address pool block identifier, For example, the address pool block identifier may be the address pool block identifier 2 shown in Table 2. Then it can continue to determine whether the board ID of the board corresponding to the address pool block ID 2 is the board ID of this board or the board ID of other boards. In the embodiment of the present invention, the address pool block ID 2 can be determined The board ID of the corresponding board is 2, and the board corresponding to the board ID is board b, so it can be determined that the message A needs to be forwarded to the board b.

所述单板a可以将所述报文A转发至所述单板b,所述单板b在接收到所述报文A后,可以根据所述地址池块2为所述报文A分配一个公网IP地址和一个端口号,即为所述报文A分配一个源公网地址。The board a may forward the message A to the board b, and after receiving the message A, the board b may allocate an address for the message A according to the address pool block 2. A public network IP address and a port number are to allocate a source public network address for the packet A.

其中,如果所述电子设备A之前未发送过其他报文,所述报文A为所述电子设备A第一次发送的报文,那么可以为所述报文A分配一个新的源公网地址。如果所述电子设备A之前已经发送过其他报文,那么很可能所述单板b已经为所述电子设备A分配过了源公网地址,所述单板b本地存储的地址池块信息中可能已经存储有所述电子设备A的源私网地址与源公网地址之间的对应关系,那么当所述单板b再接收到所述电子设备A发送的所述报文A时,可以直接为所述报文A分配之前已分配好的源公网地址即可。Wherein, if the electronic device A has not sent other messages before, and the message A is the message sent by the electronic device A for the first time, then a new source public network can be assigned to the message A address. If the electronic device A has sent other messages before, it is likely that the board b has allocated a source public network address for the electronic device A, and the address pool block information stored locally on the board b The corresponding relationship between the source private network address and the source public network address of the electronic device A may have been stored, then when the single board b receives the message A sent by the electronic device A, it can The previously allocated source public network address may be directly allocated to the packet A.

在分配所述源公网地址后,所述单板b可以将所述报文A按照所述报文中携带的目的公网地址进行转发。After the source public network address is allocated, the single board b may forward the message A according to the destination public network address carried in the message.

在所述第一时刻之后的第二时刻,所述单板a接收到一报文B,所述报文B也来自所述电子设备A,所述报文B中携带有所述电子设备A的所述源私网地址,及待接收所述报文B的电子设备B对应的目的公网地址。At a second moment after the first moment, the board a receives a message B, the message B also comes from the electronic device A, and the message B carries the electronic device A The source private network address of , and the destination public network address corresponding to the electronic device B to receive the message B.

所述单板a在接收到所述报文B后,可以将所述源私网地址按照哈希运算规则进行处理。After the single board a receives the message B, it may process the source private network address according to a hash operation rule.

本发明实施例中,所述源私网地址可以是哈希函数的输入值,在根据所述源私网地址进行哈希运算后,该哈希函数的输出值可以是一地址池块标识,该地址池块标识可以仍然是如表2中所示的所述地址池块标识2。那么可以继续确定所述地址池块标识2对应的单板的单板标识是本单板的单板标识还是其他单板的单板标识,本发明实施例中可以确定所述地址池块标识2对应的单板的单板标识为2,该单板标识对应的单板为单板b,因此可以确定所述报文B仍需要转发至所述单板b。In the embodiment of the present invention, the source private network address may be an input value of a hash function, and after the hash operation is performed according to the source private network address, the output value of the hash function may be an address pool block identifier, The address pool block identifier may still be the address pool block identifier 2 shown in Table 2. Then it can continue to determine whether the board ID of the board corresponding to the address pool block ID 2 is the board ID of this board or the board ID of other boards. In the embodiment of the present invention, the address pool block ID 2 can be determined The board ID of the corresponding board is 2, and the board corresponding to the board ID is board b, so it can be determined that the message B still needs to be forwarded to the board b.

可以将所述报文B转发至所述单板b,所述单板b在接收到所述报文B后,可以根据所述地址池块2为所述报文B分配一个源公网地址。The message B may be forwarded to the board b, and after receiving the message B, the board b may allocate a source public network address for the message B according to the address pool block 2 .

其中,因所述电子设备A之前已经发送过报文A,那么已经为所述电子设备A分配过了所述源公网地址,本次又接收到所述电子设备A发送的报文B,同理可以直接为所述报文B分配之前已分配好的所述源公网地址即可。Wherein, because the electronic device A has sent the message A before, the source public network address has been allocated to the electronic device A, and the message B sent by the electronic device A is received this time, Similarly, the previously allocated source public network address may be directly allocated to the message B.

在分配所述源公网地址后,所述单板b可以将所述报文B按照所述目的公网地址进行转发。After the source public network address is allocated, the single board b may forward the message B according to the destination public network address.

在所述第二时刻之后的第三时刻,所述单板c接收到一报文C,所述报文C来自一电子设备D,所述报文C中携带有所述电子设备D的源私网地址,及待接收所述报文C的电子设备E对应的目的公网地址。At a third moment after the second moment, the single board c receives a message C, the message C is from an electronic device D, and the message C carries the source of the electronic device D The private network address, and the destination public network address corresponding to the electronic device E to receive the message C.

在接收到所述报文C后,所述单板c可以将所述源私网地址按照哈希运算规则进行处理。After receiving the message C, the single board c may process the source private network address according to a hash operation rule.

本发明实施例中,所述源私网地址可以是哈希函数的输入值,在根据所述源私网地址进行哈希运算后,该哈希函数的输出值可以是一地址池块标识,例如该地址池块标识可以是如表2中所示的地址池块标识4。那么可以继续确定所述地址池块标识4对应的单板的单板标识是本单板的单板标识还是其他单板的单板标识,本发明实施例中可以确定所述地址池块标识4对应的单板的单板标识为3,该单板标识对应的单板为单板c,因此可以确定所述地址池块标识4对应的单板的单板标识为本单板的单板标识,即,所述单板c无需再转发所述报文,而可以直接在本单板进行处理。根据所述第二负载分担表,可以确定所述报文C需在所述单板c本地处理,而不会再将所述报文C转发至所述地址池块4原来所在的单板d,这样可以避免在信息转发时出错,降低了信息丢失率。In the embodiment of the present invention, the source private network address may be an input value of a hash function, and after the hash operation is performed according to the source private network address, the output value of the hash function may be an address pool block identifier, For example, the address pool block identifier may be the address pool block identifier 4 shown in Table 2. Then it can continue to determine whether the board ID of the board corresponding to the address pool block ID 4 is the board ID of this board or the board ID of other boards. In the embodiment of the present invention, the address pool block ID 4 can be determined The board ID of the corresponding board is 3, and the board corresponding to the board ID is board c, so it can be determined that the board ID of the board corresponding to the address pool block ID 4 is the board ID of the board , that is, the single board c does not need to forward the message, but can directly process it on this single board. According to the second load sharing table, it can be determined that the message C needs to be processed locally on the board c, and the message C will not be forwarded to the board d where the address pool block 4 originally resides , which can avoid errors in information forwarding and reduce the information loss rate.

所述单板c可以根据所述地址池块4为所述报文C分配一个源公网地址。The single board c may allocate a source public network address for the message C according to the address pool block 4 .

其中,如果所述电子设备D之前未发送过其他报文,所述报文C为所述电子设备D第一次发送的报文,那么可以为所述报文C分配一个新的源公网地址。如果所述电子设备D之前已经发送过其他报文,那么很可能已经为所述电子设备D分配过了所述源公网地址,那么所述单板c本地存储的地址池块信息中可能已经存储有所述电子设备D的源私网地址与源公网地址之间的对应关系,当所述单板c再接收到所述电子设备D发送的所述报文C时,可以直接为所述报文C分配之前已分配好的所述源公网地址即可。Wherein, if the electronic device D has not sent other messages before, and the message C is the message sent by the electronic device D for the first time, then a new source public network can be assigned to the message C address. If the electronic device D has sent other messages before, it is likely that the source public network address has been allocated to the electronic device D, and the address pool block information stored locally on the board c may have been The corresponding relationship between the source private network address and the source public network address of the electronic device D is stored, and when the single board c receives the message C sent by the electronic device D, it can directly The source public network address that has been allocated before the packet C is allocated can be used.

在分配所述源公网地址后,所述单板c可以将所述报文C按照所述报文中携带的所述目的公网地址进行转发。After the source public network address is allocated, the single board c may forward the message C according to the destination public network address carried in the message.

在所述第三时刻之后的第四时刻,所述单板d的故障得到了回复,那么,在所述单板d故障恢复后,所述控制面可以从该负载分担组中的所述单板a、所述单板b和所述单板c中选择至少一个目标单板,可以将选择的每个目标单板对应的部分地址池块分配给所述第一单板。At the fourth moment after the third moment, the fault of the single board d is recovered, then, after the fault of the single board d is recovered, the control plane can start from the single board in the load sharing group At least one target single board is selected from the board a, the single board b, and the single board c, and part of the address pool block corresponding to each selected target single board may be allocated to the first single board.

本发明实施例中,所述控制面在选择目标单板时,需要保证每个目标单板在将部分地址池块分配给所述单板d后自身还具有至少一个地址池块。那么可见,所述单板a和所述单板b分别只具有一个地址池块,显然都不能作为目标单板。In the embodiment of the present invention, when the control plane selects target boards, it needs to ensure that each target board has at least one address pool block after allocating part of the address pool blocks to the board d. Then it can be seen that the single board a and the single board b have only one address pool block respectively, obviously neither can be used as the target single board.

因此,本发明实施例中选择的所述目标单板为所述单板c。因为要保证所述单板c在将部分地址池块分配给所述单板d后自身还具有至少一个地址池块,因此可以将所述单板c中的一个地址池块分配给所述单板d。Therefore, the target board selected in the embodiment of the present invention is the board c. Because it is necessary to ensure that the board c itself has at least one address pool block after allocating part of the address pool blocks to the board d, it is possible to assign an address pool block in the board c to the board d. board d.

本发明实施例中,所述单板d在发生故障之前对应的地址池块为所述地址池块4,而在此时将所述单板c中的一个地址池块分配给所述单板d时,可以将所述单板d原来对应的所述地址池块4重新分配给所述单板d,或者也可以将所述地址池块3分配给所述单板d。例如本发明实施例中将所述地址池块4重新分配给所述单板d。In the embodiment of the present invention, the address pool block corresponding to the single board d before the fault occurs is the address pool block 4, and at this time, an address pool block in the single board c is allocated to the single board When d, the address pool block 4 originally corresponding to the board d may be reassigned to the board d, or the address pool block 3 may be allocated to the board d. For example, in the embodiment of the present invention, the address pool block 4 is reassigned to the single board d.

本发明实施例中,在将所述地址池块4重新分配给所述单板d的同时或之后,还可以更新如表2所示的所述第二负载分担表,获得第三负载分担表。可以将所述第二负载分担表中所述地址池块4的地址池块标识4对应的单板的单板标识3更新为所述单板标识d,所述第三负载分担表可以继续如表1所示。In the embodiment of the present invention, at the same time or after reassigning the address pool block 4 to the single board d, the second load sharing table as shown in Table 2 may also be updated to obtain a third load sharing table . The board ID 3 of the board corresponding to the address pool block ID 4 of the address pool block 4 in the second load sharing table may be updated to the board ID d, and the third load sharing table may continue as follows Table 1 shows.

在获得所述第三负载分担表后,所述控制面可以将所述第三负载分担表下发给所述负载分担组中的各单板,即下发给所述单板a、所述单板b、所述单板c和所述单板d。After obtaining the third load sharing table, the control plane may issue the third load sharing table to each board in the load sharing group, that is, to the board a, the veneer b, the veneer c and the veneer d.

本发明实施例中,在所述控制面将所述地址池块4重新分配给所述单板d的同时或之后,可以令所述单板c将其本地中存储的所述地址池块4对应的地址池块信息4发送给所述单板d。In this embodiment of the present invention, at the same time or after the control plane reassigns the address pool block 4 to the board d, the board c may be ordered to allocate the address pool block 4 stored in its local The corresponding address pool block information 4 is sent to the single board d.

本发明实施例中,在将所述地址池块信息4发送给所述单板d后,所述单板c可以在本地删除所述地址池块信息4。In the embodiment of the present invention, after sending the address pool block information 4 to the board d, the board c may delete the address pool block information 4 locally.

本发明实施例中,在所述单板c将所述地址池块信息4发送给所述单板d后,所述控制面可以将所述单板d重新加入所述负载分担组。In the embodiment of the present invention, after the board c sends the address pool block information 4 to the board d, the control plane may add the board d to the load sharing group again.

实施例四Embodiment four

请参见图3,本发明实施例提供一种报文转发装置,所述装置可以包括第一分配单元301、第一更新单元302和第一发送单元303。本发明实施例中,所述报文转发装置可以是所述控制面。Referring to FIG. 3 , an embodiment of the present invention provides a message forwarding device, and the device may include a first distribution unit 301 , a first update unit 302 and a first sending unit 303 . In the embodiment of the present invention, the packet forwarding device may be the control plane.

较佳的,所述装置还可以包括划分单元304、第二分配单元305、第三分配单元306和第二更新单元307。Preferably, the apparatus may further include a dividing unit 304 , a second allocating unit 305 , a third allocating unit 306 and a second updating unit 307 .

所述第一分配单元301可以用于将发生故障的第一单板对应的M个地址池块分配给负载分担组中的其他单板。The first allocation unit 301 may be configured to allocate the M address pool blocks corresponding to the first single board that has failed to other single boards in the load sharing group.

较佳的,所述M个地址池块可以是所述第一单板对应的全部地址池块,这样可以较好地避免地址池块资源的浪费。Preferably, the M address pool blocks may be all address pool blocks corresponding to the first single board, which can better avoid waste of address pool block resources.

所述第一更新单元302可以用于将第一负载分担表中所述M个地址池块的M个地址池块标识对应的单板的单板标识相应分别更新为被分配的单板标识,获得第二负载分担表。The first updating unit 302 may be configured to update the board IDs of the boards corresponding to the M address pool block IDs of the M address pool blocks in the first load sharing table to the assigned board IDs respectively, Obtain the second load sharing table.

本发明实施例中,一个负载分担表中存储的可以是一个负载分担组中的单板标识与地址池块标识之间的对应关系。例如,如果在一个负载分担组中,地址池块A对应的单板为单板1,那么在其对应的负载分担表中就可以存储有所述地址池块A的地址池块标识A与所述单板1的单板标识1之间的对应关系。In the embodiment of the present invention, what is stored in a load sharing table may be the corresponding relationship between the board identifiers in a load sharing group and the address pool block identifiers. For example, if in a load sharing group, the board corresponding to address pool block A is board 1, then the address pool block ID A and all Describe the correspondence between board IDs 1 of boards 1.

所述第一发送单元303可以用于将所述第二负载分担表下发给所述负载分担组中的各单板,以使所述负载分担组中的一单板根据所述第二负载分担表,为收到的报文分配源公网地址,及根据所述报文携带的目的公网地址将所述报文进行转发。The first sending unit 303 may be configured to send the second load sharing table to each board in the load sharing group, so that a board in the load sharing group The distribution table allocates the source public network address for the received message, and forwards the message according to the destination public network address carried in the message.

所述负载分担组中的一个单板如果接收到来自一电子设备的所述报文,那么可以首先确定所述报文对应的第一地址池块的第一地址池块标识。If a single board in the load sharing group receives the message from an electronic device, it may first determine the first address pool block identifier of the first address pool block corresponding to the message.

具体的,对于所述负载分担组中的一个单板来说,其在接收到所述报文后,可以将所述报文中携带的源私网地址按照第一运算规则进行处理,获得相应的地址池块标识;其中,所述第一运算规则为:当输入信息相同时,输出信息也相同。在获得所述地址池块标识后,可以根据所述第二负载分担表确定所述地址池块标识对应的单板,从而可以确定所述报文是留在本单板处理还是要转发给其他单板处理。Specifically, for a single board in the load sharing group, after receiving the message, it can process the source private network address carried in the message according to the first calculation rule to obtain the corresponding address pool block identifier; wherein, the first operation rule is: when the input information is the same, the output information is also the same. After obtaining the address pool block identifier, the single board corresponding to the address pool block identifier can be determined according to the second load sharing table, so that it can be determined whether the message should be left on this single board for processing or forwarded to other veneer handling.

本发明实施例中,所述第一运算规则可以为哈希运算规则,具体的,所述第一运算规则可以是:将所述源私网地址作为哈希函数的输入值,所述哈希函数的输出值即为所述第一地址池块标识。其中,所述源私网地址可以是所述电子设备的私网IP地址。In the embodiment of the present invention, the first operation rule may be a hash operation rule. Specifically, the first operation rule may be: using the source private network address as the input value of the hash function, the hash The output value of the function is the block identifier of the first address pool. Wherein, the source private network address may be a private network IP address of the electronic device.

本发明实施例中,之所以可以选择哈希运算规则作为所述第一运算规则,因为对于哈希运算规则来说,只要输入值相同,输出值就会相同。例如,如果有两个报文,只要这两个报文都来自一个电子设备,那么这两个报文对应的电子设备的源私网地址就相同,将这两个源私网地址分别通过哈希运算规则进行处理后,所获得的两个输出值会相同,也就是得到的地址池块标识相同。这样能够保证来自一个电子设备的报文能够始终转发到同一个地址池块进行处理,即能够保证为一个电子设备只需分配一个公网IP地址和一个端口号即可,尽量节省了公网IP地址。In the embodiment of the present invention, the hash operation rule can be selected as the first operation rule, because for the hash operation rule, as long as the input values are the same, the output values will be the same. For example, if there are two messages, as long as the two messages come from an electronic device, the source private network addresses of the electronic devices corresponding to the two messages are the same, and the two source private network addresses are respectively passed through the hash After processing by the Greek operation rule, the two obtained output values will be the same, that is, the obtained address pool block identifiers will be the same. This can ensure that the message from an electronic device can always be forwarded to the same address pool block for processing, that is, it can ensure that an electronic device only needs to be assigned a public network IP address and a port number, saving the public network IP as much as possible address.

因此,本发明实施例中,在选择所述第一运算规则时,一个选择条件可以是保证所述第一运算规则能够在输入值相同时得到相同的输出值即可,凡是符合此条件的所述第一运算规则均在本发明的保护范围之内。Therefore, in the embodiment of the present invention, when selecting the first operation rule, a selection condition may be to ensure that the first operation rule can obtain the same output value when the input value is the same, and all those that meet this condition The above-mentioned first operation rules are all within the protection scope of the present invention.

所述划分单元304可以用于将地址池分为至少一个地址池块。The division unit 304 may be configured to divide the address pool into at least one address pool block.

所述第二分配单元305可以用于将所述至少一个地址池块分配给所述负载分担组中的各单板。The second allocation unit 305 may be configured to allocate the at least one address pool block to each board in the load sharing group.

所述第三分配单元306可以用于在所述第一单板故障恢复后,从所述负载分担组的其他单板中选择至少一个目标单板,将每个目标单板对应的部分地址池块分配给所述第一单板,并令每个目标单板将分配给所述第一单板的地址池块对应的地址池块信息发送给所述第一单板。The third allocating unit 306 may be configured to select at least one target single board from other single boards in the load sharing group after the first single board fails and recovers, and allocate part of the address pool corresponding to each target single board to allocate blocks to the first single board, and make each target single board send address pool block information corresponding to the address pool block allocated to the first single board to the first single board.

可选的,在所述第一单板故障恢复后,为所述第一单板重新分配地址池块时,可以将所述第一单板原本具有的所述M个地址池块重新分配给所述第一单板,即可以将在所述第一单板出故障时分配给所述第二单板的所述M个地址池块重新分配给所述第一单板。Optionally, after the first single board recovers from failure, when reassigning address pool blocks to the first single board, the M address pool blocks originally owned by the first single board may be reassigned to The first single board may re-allocate to the first single board the M address pool blocks allocated to the second single board when the first single board fails.

可选的,在所述第一单板故障恢复后,为所述第一单板重新分配地址池块时,可以在所述负载分担组中除所述第一单板外的其他单板中任意选择目标单板,将选择的每个目标单板中的部分地址池块分配给所述第一单板。Optionally, when the address pool block is reassigned to the first board after the fault recovery of the first board, other boards in the load sharing group except the first board may Randomly select target boards, and allocate part of address pool blocks in each selected target board to the first board.

所述第二更新单元307可以用于将所述第二负载分担表中分配给所述第一单板的地址池块的地址池块标识对应的单板的单板标识更新为所述第一单板标识,获得第三负载分担表。The second updating unit 307 may be configured to update the board identifier of the board corresponding to the address pool block identifier of the address pool block allocated to the first board in the second load sharing table to the first The board ID is used to obtain the third load sharing table.

例如,在重新进行分配时,将所述负载分担组中所述第二单板中的地址池块A分配给了所述第一单板,及将所述负载分担组中所述第三单板中的地址池块B分配给了所述第一单板。那么,在分配的同时或之后可以更新所述负载分担表。在更新之前的所述负载分担表中,所述地址池块A的地址池块标识A对应于所述第二单板的所述第二单板标识,所述地址池块B的地址池块标识B对应于所述第三单板的第三单板标识,那么在将所述负载分担表进行更新后,所述地址池块A的地址池块标识A对应于所述第一单板的所述第一单板标识,所述地址池块B的地址池块标识B也对应于所述第一单板的所述第一单板标识。For example, when redistributing, the address pool block A in the second single board in the load sharing group is allocated to the first single board, and the address pool block A in the third single board in the load sharing group is allocated to the first single board. The address pool block B in the board is allocated to the first single board. Then, the load sharing table can be updated at the same time as or after the allocation. In the load sharing table before updating, the address pool block ID A of the address pool block A corresponds to the second board ID of the second board, and the address pool block B of the address pool block ID B corresponds to the third board ID of the third board, then after the load sharing table is updated, the address pool block ID A of the address pool block A corresponds to the ID of the first board. The first board identifier, the address pool block identifier B of the address pool block B also corresponds to the first board identifier of the first board.

所述第一发送单元303还可以用于将所述第三负载分担表下发给所述负载分担组中的各单板。The first sending unit 303 may also be configured to send the third load sharing table to each board in the load sharing group.

本发明实施例中,所述地址池块信息至少可以包括用户表信息和/或流表信息。In the embodiment of the present invention, the address pool block information may at least include user table information and/or flow table information.

本发明实施例中,在令各目标单板将分配给所述第一单板的地址池块对应的地址池块信息发送给所述第一单板之后,还可以删除每个目标单板中分配给所述第一单板的各地址池块对应的地址池块信息。In this embodiment of the present invention, after each target board sends the address pool block information corresponding to the address pool block allocated to the first board to the first board, the address pool block information in each target board can also be deleted. Address pool block information corresponding to each address pool block allocated to the first single board.

本发明实施例中,在所述第一单板故障恢复后,可以继续将所述第一单板加入所述负载分担表对应的负载分担组,以使所述第一单板开始工作。In the embodiment of the present invention, after the first single board recovers from failure, the first single board may continue to be added to the load sharing group corresponding to the load sharing table, so that the first single board starts working.

具体的,本发明实施例中,在将分配给所述第一单板的地址池块对应的地址池块信息发送给所述第一单板之后,可以将所述第一单板重新加入所述负载分担表对应的所述负载分担组,以使所述第一单板重新开始工作。Specifically, in this embodiment of the present invention, after the address pool block information corresponding to the address pool block allocated to the first board is sent to the first board, the first board may be added to the the load sharing group corresponding to the load sharing table, so that the first single board starts working again.

实施例五Embodiment five

请参见图4,本发明实施例提供一种报文转发装置,所述装置可以包括获取单元401、处理单元402和第四分配单元403。本发明实施例中,所述报文转发装置可以是所述负载分担组中的任一单板。Referring to FIG. 4 , an embodiment of the present invention provides a packet forwarding device, and the device may include an acquiring unit 401 , a processing unit 402 and a fourth distributing unit 403 . In the embodiment of the present invention, the packet forwarding device may be any single board in the load sharing group.

所述获取单元401可以用于在获得第二负载分担表后,获得来自一电子设备的报文,所述报文中至少携带有源私网地址及目的公网地址。The obtaining unit 401 may be configured to obtain a message from an electronic device after obtaining the second load sharing table, and the message at least carries an active private network address and a destination public network address.

本发明实施例中,在一个负载分担组中,当有单板发生故障时,例如发生故障的单板为所述第一单板,那么所述控制面可以将所述第一单板对应的M个地址池块分配给所述负载分担组的其他单板,在将所述M个地址池块分配给所述负载分担组中的其他单板后,所述控制面可以更新所述第一负载分担表,例如可以将所述第一负载分担表中所述M个地址池块的M个地址池块标识对应的单板的单板标识相应分别更新为被分配的单板标识,获得第二负载分担表。In this embodiment of the present invention, in a load sharing group, when a single board fails, for example, the faulty single board is the first single board, then the control plane can set the corresponding M address pool blocks are allocated to other boards in the load sharing group, and after the M address pool blocks are allocated to other boards in the load sharing group, the control plane may update the first In the load sharing table, for example, the board IDs of the boards corresponding to the M address pool block IDs of the M address pool blocks in the first load sharing table may be respectively updated to the assigned board IDs, and the first Two load sharing table.

在将所述第一负载分担表进行更新后,可以获得所述第二负载分担表。且,所述控制面可以将所述第二负载分担表下发给所述负载分担组中的各单板。After the first load sharing table is updated, the second load sharing table can be obtained. In addition, the control plane may issue the second load sharing table to each board in the load sharing group.

所述处理单元402可以用于将所述源私网地址按照第一运算规则进行处理,获得相应的地址池块标识;其中,所述第一运算规则为:当输入信息相同时,输出信息也相同。The processing unit 402 may be configured to process the source private network address according to a first operation rule to obtain a corresponding address pool block identifier; wherein, the first operation rule is: when the input information is the same, the output information is also same.

较佳的,本发明实施例中,所述第一运算规则可以是哈希(Hash)运算规则,或者所述第一运算规则也可以是其他运算规则。Preferably, in the embodiment of the present invention, the first operation rule may be a hash (Hash) operation rule, or the first operation rule may also be other operation rules.

所述第四分配单元403可以用于根据所述第二负载分担表,通过所述地址池块标识对应的地址池块为所述报文分配源公网地址,及根据所述目的公网地址将所述报文进行转发。The fourth allocating unit 403 may be configured to allocate a source public network address for the packet according to the address pool block corresponding to the address pool block identifier according to the second load sharing table, and allocate a source public network address according to the destination public network address forward the message.

所述第四分配单元403具体可以用于根据所述第二负载分担表确定所述地址池块标识对应的单板的单板标识是本单板的单板标识还是其他单板的单板标识;当所述地址池块标识对应的单板的单板标识是本单板的单板标识时,通过所述地址池块标识对应的所述地址池块为所述报文分配源公网地址,及根据所述目的公网地址将所述报文进行转发;当所述地址池块标识对应的单板的单板标识是其他单板的单板标识时,将所述报文转发至其他单板标识对应的单板,以通过该单板根据所述地址池块标识对应的所述地址池块为所述报文分配源公网地址,及根据所述目的公网地址将所述报文进行转发。The fourth allocating unit 403 may be specifically configured to determine, according to the second load sharing table, whether the board ID of the board corresponding to the address pool block ID is the board ID of this board or the board ID of other boards ; When the single board identification of the single board corresponding to the address pool block identification is the single board identification of this single board, assign the source public network address for the message through the address pool block corresponding to the address pool block identification , and forward the message according to the destination public network address; when the board ID of the board corresponding to the address pool block ID is the board ID of other boards, forward the message to other boards A single board corresponding to the single board identification, so that the single board allocates a source public network address for the message according to the address pool block corresponding to the address pool block identification, and sends the message according to the destination public network address The text is forwarded.

例如,所述负载分担组中的单板1在确定所述第一地址池块标识后,可以根据所述第二负载分担表确定所述第一地址池块标识对应的单板的单板标识究竟是本单板的单板标识还是其他单板的单板标识,即确定所述第一地址池块位于哪个单板上。如果确定所述第一地址池块标识对应的单板的单板标识为本单板的单板标识,相当于确定所述第一地址池块就位于本单板上,那么所述单板1可以根据所述第一地址池块为所述报文分配所述源公网地址,在分配所述源公网地址后,可以根据所述报文中携带的所述目的公网地址将所述报文进行转发。For example, after the single board 1 in the load sharing group determines the first address pool block identifier, it can determine the single board identifier of the single board corresponding to the first address pool block identifier according to the second load sharing table Whether it is the board ID of the current board or the board ID of other boards is to determine which board the first address pool block is located on. If it is determined that the board ID of the board corresponding to the first address pool block ID is the board ID of this board, it is equivalent to determining that the first address pool block is located on this board, then the board 1 The source public network address may be allocated to the message according to the first address pool block, and after the source public network address is allocated, the source public network address may be allocated according to the destination public network address carried in the message The message is forwarded.

例如,所述负载分担组中的所述单板1在确定所述第一地址池块标识后,可以根据所述第二负载分担表确定所述第一地址池块标识对应的单板的单板标识究竟是本单板的单板标识还是其他单板的单板标识,即确定所述第一地址池块究竟位于哪个单板上。如果确定所述第一地址池块标识对应的单板的单板标识为其他单板的单板标识,例如确定所述第一地址池块标识对应的单板的单板标识为2,该单板标识2对应的单板为单板2,相当于确定所述第一地址池块位于所述单板2上,所述单板2与所述单板1为不同单板,那么所述单板1可以将所述报文转发给所述单板2。For example, after the single board 1 in the load sharing group determines the first address pool block identifier, it can determine the unit of the single board corresponding to the first address pool block identifier according to the second load sharing table. Whether the board ID is the board ID of the current board or the board ID of other boards is to determine which board the first address pool block is located on. If it is determined that the board ID of the board corresponding to the first address pool block ID is the board ID of another board, for example, if it is determined that the board ID of the board corresponding to the first address pool block ID is 2, the board The veneer corresponding to the board identifier 2 is veneer 2, which is equivalent to determining that the first address pool block is located on the veneer 2, and the veneer 2 and the veneer 1 are different veneers, then the veneer Board 1 may forward the message to board 2.

本发明实施例中,在将所述报文分配给所述单板2后,所述单板2可以为所述报文分配所述源公网地址,且所述单板2可以根据所述报文携带的目的公网地址将所述报文进行转发。In the embodiment of the present invention, after the message is allocated to the veneer 2, the veneer 2 may allocate the source public network address for the message, and the veneer 2 may allocate the source public network address according to the The destination public network address carried in the message forwards the message.

实施例六Embodiment six

请参见图5,本发明实施例提供一种报文转发装置,所述装置可以包括第一处理器501和第一发送接口502。Referring to FIG. 5 , an embodiment of the present invention provides a packet forwarding device, and the device may include a first processor 501 and a first sending interface 502 .

所述第一处理器501可以用于将发生故障的第一单板对应的M个地址池块分配给负载分担组中的其他单板;将第一负载分担表中所述M个地址池块的M个地址池块标识对应的单板的单板标识相应分别更新为被分配的单板标识,获得第二负载分担表。The first processor 501 may be configured to allocate the M address pool blocks corresponding to the first single board that has failed to other single boards in the load sharing group; the M address pool blocks in the first load sharing table The board IDs of the boards corresponding to the M address pool block IDs are updated to the assigned board IDs respectively, and the second load sharing table is obtained.

所述第一处理器501还可以用于将地址池分为至少一个地址池块;将所述至少一个地址池块分配给所述负载分担组中的各单板。The first processor 501 may also be configured to divide the address pool into at least one address pool block; and allocate the at least one address pool block to each board in the load sharing group.

所述第一处理器501还可以用于在所述第一单板故障恢复后,从所述负载分担组的其他单板中选择至少一个目标单板,将每个目标单板对应的部分地址池块分配给所述第一单板,并令每个目标单板将分配给所述第一单板的地址池块对应的地址池块信息发送给所述第一单板;第二更新单元用于将所述第二负载分担表中分配给所述第一单板的地址池块的地址池块标识对应的单板的单板标识更新为所述第一单板标识,获得第三负载分担表。The first processor 501 may also be configured to select at least one target board from other boards in the load sharing group after the first board recovers from failure, and set the partial address corresponding to each target board to A pool block is allocated to the first veneer, and each target veneer is configured to send address pool block information corresponding to the address pool block allocated to the first veneer to the first veneer; the second updating unit It is used to update the single board identifier of the single board corresponding to the address pool block identifier of the address pool block allocated to the first single board in the second load sharing table to the first single board identifier, to obtain a third load contribution table.

所述第一处理器501还可以用于将所述第一单板加入所述负载分担表对应的负载分担组,以使所述第一单板开始工作。The first processor 501 may also be configured to add the first single board to a load sharing group corresponding to the load sharing table, so that the first single board starts working.

所述第一发送接口502可以用于将所述第二负载分担表下发给所述负载分担组中的各单板,以使所述负载分担组中的一单板根据所述第二负载分担表,为收到的报文分配源公网地址,及根据所述报文携带的目的公网地址将所述报文进行转发。The first sending interface 502 may be used to send the second load sharing table to each board in the load sharing group, so that a board in the load sharing group The distribution table allocates the source public network address for the received message, and forwards the message according to the destination public network address carried in the message.

所述第一发送接口502还可以用于将所述第三负载分担表下发给所述负载分担组中的各单板。The first sending interface 502 may also be configured to send the third load sharing table to each board in the load sharing group.

实施例七Embodiment seven

请参见图6,本发明实施例提供一种报文转发装置,所述装置可以包括获取接口601和第二处理器602。Referring to FIG. 6 , an embodiment of the present invention provides a packet forwarding device, and the device may include an acquisition interface 601 and a second processor 602 .

所述获取接口601可以用于在获得第二负载分担表后,获得来自一电子设备的报文,所述报文中至少携带有源私网地址及目的公网地址。The obtaining interface 601 may be used to obtain a message from an electronic device after obtaining the second load sharing table, and the message at least carries an active private network address and a destination public network address.

所述第二处理器602可以用于将所述源私网地址按照第一运算规则进行处理,获得相应的地址池块标识;其中,所述第一运算规则为:当输入信息相同时,输出信息也相同;根据所述第二负载分担表,通过所述地址池块标识对应的地址池块为所述报文分配源公网地址,及根据所述目的公网地址将所述报文进行转发。The second processor 602 may be configured to process the source private network address according to a first operation rule to obtain a corresponding address pool block identifier; wherein, the first operation rule is: when the input information is the same, the output The information is also the same; according to the second load sharing table, assign the source public network address to the message through the address pool block corresponding to the address pool block identification, and process the message according to the destination public network address Forward.

所述第二处理器602具体可以用于根据所述第二负载分担表确定所述地址池块标识对应的单板的单板标识是本单板的单板标识还是其他单板的单板标识;当所述地址池块标识对应的单板的单板标识是本单板的单板标识时,通过所述地址池块标识对应的所述地址池块为所述报文分配源公网地址,及根据所述目的公网地址将所述报文进行转发;当所述地址池块标识对应的单板的单板标识是其他单板的单板标识时,将所述报文转发至所述其他单板标识对应的单板,以通过该单板根据所述地址池块标识对应的所述地址池块为所述报文分配源公网地址,及根据所述目的公网地址将所述报文进行转发。The second processor 602 may be specifically configured to determine, according to the second load sharing table, whether the board ID of the board corresponding to the address pool block ID is the board ID of this board or the board ID of other boards. ; When the single board identification of the single board corresponding to the address pool block identification is the single board identification of this single board, assign the source public network address for the message through the address pool block corresponding to the address pool block identification , and forward the message according to the destination public network address; when the board ID of the board corresponding to the address pool block ID is the board ID of other boards, forward the message to the board The single board corresponding to the other single board identification, so that the single board allocates the source public network address for the message according to the address pool block corresponding to the address pool block identification, and allocates the source public network address according to the destination public network address The message is forwarded.

本发明实施例提供一种报文转发方法,所述方法可以包括:将发生故障的第一单板对应的M个地址池块分配给负载分担组中的其他单板;将第一负载分担表中所述M个地址池块的M个地址池块标识对应的单板的单板标识相应分别更新为被分配的单板标识,获得第二负载分担表;将所述第二负载分担表下发给所述负载分担组中的各单板,以使所述负载分担组中的一单板根据所述第二负载分担表,为收到的报文分配源公网地址,及根据所述报文携带的目的公网地址将所述报文进行转发。An embodiment of the present invention provides a message forwarding method, the method may include: allocating the M address pool blocks corresponding to the first single board that has failed to other single boards in the load sharing group; The single board identifications of the single boards corresponding to the M address pool block identifications of the M address pool blocks in the above are respectively updated to the assigned single board identifications to obtain the second load sharing table; sending to each board in the load sharing group, so that a board in the load sharing group assigns a source public network address to the received message according to the second load sharing table, and according to the The destination public network address carried in the message forwards the message.

本发明实施例中,当所述第一单板发生故障时,可以将所述第一单板对应的所述M个地址池块分配给负载分担组中的其他单板,例如可以分配给其他一个单板,或者也可以分配给其他多个单板,并将所述负载分担表中所述M个地址池块的M个地址池块标识对应的单板的单板标识相应分别更新为被分配的单板标识,这样,当有所述报文需要转发时,可以获得所述报文对应的地址池块标识,再根据所述负载分担表中地址池块标识与单板标识的对应关系就能够将所述报文分配至正确的单板,以将所述报文进行转发,从而,当单板出现故障时,能够将该单板对应的地址池块分配给其他单板,提高了地址池块的利用率,尽量避免了地址池资源的浪费。并且,由于在分配地址池块的同时也相应更新了所述负载分担表,后续报文转发可以根据更新后的负载分担表来进行,可以保证报文得到正确的转发,尽量避免报文丢失,降低信息丢失率。In the embodiment of the present invention, when the first single board fails, the M address pool blocks corresponding to the first single board can be allocated to other single boards in the load sharing group, for example, can be allocated to other A single board, or may also be assigned to other multiple single boards, and the single board identifiers of the single boards corresponding to the M address pool block identifiers of the M address pool blocks in the load sharing table are correspondingly updated to be assigned board ID, so that when the message needs to be forwarded, the address pool block ID corresponding to the message can be obtained, and then according to the corresponding relationship between the address pool block ID and the board ID in the load sharing table The message can be allocated to the correct single board to forward the message, so that when a single board fails, the address pool block corresponding to the single board can be allocated to other single boards, which improves the The utilization rate of address pool blocks avoids the waste of address pool resources as much as possible. And, since the load sharing table is also updated correspondingly when the address pool block is allocated, subsequent message forwarding can be carried out according to the updated load sharing table, which can ensure that the message is correctly forwarded and avoid message loss as much as possible. Reduce information loss rate.

本发明实施例中,在将所述第二负载分担表下发给各单板后,由单板为报文来分配源公网地址和端口号,无需由控制面来进行公网IP地址及端口号的分配,提高了分配效率,能够满足信息高速处理的需求,而且也不会给控制面增加负担。In the embodiment of the present invention, after sending the second load sharing table to each single board, the single board allocates the source public network address and port number for the message, and the control plane does not need to perform the public network IP address and port number. The allocation of port numbers improves the allocation efficiency and can meet the demand for high-speed processing of information without adding burden to the control plane.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to needs. The internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the above-described system, device, and unit, reference may be made to the corresponding process in the foregoing method embodiments, and details are not repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .

以上所述,以上实施例仅用以对本申请的技术方案进行了详细介绍,但以上实施例的说明只是用于帮助理解本发明的方法及其核心思想,不应理解为对本发明的限制。本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。As mentioned above, the above embodiments are only used to introduce the technical solutions of the present application in detail, but the descriptions of the above embodiments are only used to help understand the method and core idea of the present invention, and should not be construed as limiting the present invention. Any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention shall fall within the protection scope of the present invention.

Claims (12)

1. a kind of message forwarding method, which is characterized in that the described method comprises the following steps:
The corresponding M address pool block of the first veneer to break down is distributed to other veneers in load balancing group;
M address pool block of M address pool block described in the first load balancing table is identified to the veneer sign phase of corresponding veneer It should be updated to assigned veneer sign respectively, obtain the second load balancing table;
The second load balancing table is handed down to each veneer in the load balancing group, so that in the load balancing group One veneer is identified according to the second load balancing table in the first address pool block of corresponding first address pool block of message received In the case that the veneer sign of corresponding veneer is the veneer sign of the veneer, the message to receive distributes source public network address, And be forwarded the message according to the purpose public network address that the message carries, in corresponding first address pool of the message In the case that the veneer sign of the corresponding veneer of the first address pool block mark of block is other veneer signs, the message is forwarded To other veneers, wherein, the veneer handles the source private net address that the message carries according to the first operation rule, obtains The first address pool block mark of corresponding first address pool block of the message is obtained, first operation rule is:When input information When identical, output information is also identical.
2. the method as described in claim 1, which is characterized in that by the corresponding M address pool block of the first veneer to break down Before distributing to other veneers in load balancing group, further include:
Address pool is divided at least one address pool block;
At least one address pool block is distributed into each veneer in the load balancing group.
3. method as claimed in claim 1 or 2, which is characterized in that described negative the second load balancing table is handed down to After carrying each veneer shared in group, further include:
After first single board default recovery, at least one target list is selected from other veneers of the load balancing group The corresponding partial address pond block of each target single board is distributed to first veneer by plate, and enables each target single board that will distribute First veneer is sent to the corresponding address pool block information of address pool block of first veneer;
The address pool block that the address pool block of first veneer will be distributed in the second load balancing table identifies corresponding list The veneer sign of plate is updated to first veneer sign, obtains third load balancing table;
The third load balancing table is handed down to each veneer in the load balancing group.
4. a kind of message forwarding method, applied to veneer, which is characterized in that the described method comprises the following steps:
After the second load balancing table is obtained, the message from an electronic equipment is obtained, active private is at least carried in the message Net address and purpose public network address;
The source private net address according to the first operation rule is handled, obtains corresponding first address pool block of the message First address pool block identifies;Wherein, first operation rule is:When input information is identical, output information is also identical;
According to the second load balancing table, identify and correspond in the first address pool block of corresponding first address pool block of the message Veneer veneer sign be the veneer sign of the veneer in the case of, pass through the corresponding address pool of described address pond block identification Block distributes source public network address for the message and is forwarded the message according to the purpose public network address, in the report The veneer sign that first address pool block of corresponding first address pool block of text identifies corresponding veneer is the feelings of other veneer signs Under condition, the message is forwarded to other veneers.
5. method as claimed in claim 4, which is characterized in that according to the second load balancing table, pass through described address pond The corresponding address pool block of block identification distributes source public network address and according to the purpose public network address by the message for the message It is forwarded, including:
The veneer sign that block identification corresponding veneer in described address pond is determined according to the second load balancing table is this veneer The veneer sign of veneer sign or other veneers;
When the veneer sign of the corresponding veneer of described address pond block identification is the veneer sign of this veneer, pass through described address pond The corresponding described address pond block of block identification distributes source public network address and according to the purpose public network address by described in for the message Message is forwarded;
When the veneer sign of the corresponding veneer of described address pond block identification is the veneer sign of other veneers, the message is turned Be sent to the corresponding veneer of other veneer signs, with by the veneer according to the corresponding described address of described address pond block identification Pond block distributes source public network address for the message and is forwarded the message according to the purpose public network address.
6. a kind of apparatus for forwarding message, which is characterized in that described device includes:
First allocation unit, the corresponding M address pool block of the first veneer for that will break down are distributed in load balancing group Other veneers;
First updating unit, for the M address pool block mark of M address pool block described in the first load balancing table is corresponding The veneer sign of veneer is accordingly updated to assigned veneer sign respectively, obtains the second load balancing table;
First transmitting element, for the second load balancing table to be handed down to each veneer in the load balancing group, so that A veneer in the load balancing group is according to the second load balancing table, in corresponding first address pool block of message received The first address pool block identify corresponding veneer veneer sign be the veneer sign of the veneer in the case of, for the report received Literary distribution source public network address and according to the message carry purpose public network address the message is forwarded, in the report The veneer sign that first address pool block of corresponding first address pool block of text identifies corresponding veneer is the feelings of other veneer signs Under condition, the message is forwarded to other veneers, wherein, the source private net address that the veneer carries the message is according to first Operation rule is handled, and obtains the first address pool block mark of corresponding first address pool block of the message, first fortune Calculating rule is:When input information is identical, output information is also identical.
7. device as claimed in claim 6, which is characterized in that described device further includes division unit and the second allocation unit;
The division unit is used to address pool being divided at least one address pool block;
Second allocation unit is used to distributing at least one address pool block into each veneer in the load balancing group.
8. device as claimed in claims 6 or 7, which is characterized in that described device further includes third allocation unit and second more New unit;
The third allocation unit is used for after first single board default recovery, from other veneers of the load balancing group At least one target single board is selected, the corresponding partial address pond block of each target single board is distributed into first veneer, and enable The corresponding address pool block information of the address pool block for distributing to first veneer is sent to first list by each target single board Plate;
Second updating unit is used for the address of address pool block for first veneer being distributed in the second load balancing table The veneer sign of the corresponding veneer of pond block identification is updated to first veneer sign, obtains third load balancing table;
First transmitting element is additionally operable to each veneer being handed down to the third load balancing table in the load balancing group.
9. a kind of apparatus for forwarding message, which is characterized in that described device includes:
Acquiring unit, for after the second load balancing table is obtained, obtaining the message from an electronic equipment, in the message extremely Active private net address and purpose public network address are carried less;
For the source private net address to be handled according to the first operation rule, it is corresponding to obtain the message for processing unit The first address pool block mark of first address pool block;Wherein, first operation rule is:When input information is identical, output Information is also identical;
4th allocation unit, for according to the second load balancing table, the of corresponding first address pool block of the message In the case that the veneer sign of the corresponding veneer of one address pool block mark is the veneer sign of the apparatus for forwarding message, pass through institute It is that the message distributes source public network address and incited somebody to action according to the purpose public network address to state address pool block and identify corresponding address pool block The message is forwarded, and the list of corresponding veneer is identified in the first address pool block of corresponding first address pool block of the message In the case that panel sign is other veneer signs, the message is forwarded to other veneers.
10. device as claimed in claim 9, which is characterized in that the 4th allocation unit is specifically used for:According to described second Load balancing table determine the veneer sign of the corresponding veneer of described address pond block identification be this veneer veneer sign or other The veneer sign of veneer;When the veneer sign of the corresponding veneer of described address pond block identification is the veneer sign of this veneer, lead to It crosses the corresponding described address pond block of described address pond block identification and distributes source public network address and according to purpose public affairs for the message The message is forwarded by net address;When the veneer sign of the corresponding veneer of described address pond block identification is the list of other veneers During panel sign, the message is forwarded to the corresponding veneer of other veneer signs, with by the veneer according to described address pond block It identifies corresponding described address pond block and distributes source public network address and according to the purpose public network address by the report for the message Text is forwarded.
11. a kind of apparatus for forwarding message, which is characterized in that described device includes:
First processor, the corresponding M address pool block of the first veneer for that will break down are distributed in load balancing group Other veneers;M address pool block of M address pool block described in the first load balancing table is identified to the veneer mark of corresponding veneer It is sensible to be updated to assigned veneer sign respectively, obtain the second load balancing table;
First transmission interface, for the second load balancing table to be handed down to each veneer in the load balancing group, so that A veneer in the load balancing group is according to the second load balancing table, in corresponding first address pool block of message received The first address pool block identify corresponding veneer veneer sign be the veneer sign of the veneer in the case of, for the report received Literary distribution source public network address and according to the message carry purpose public network address the message is forwarded, in the report The veneer sign that first address pool block of corresponding first address pool block of text identifies corresponding veneer is the feelings of other veneer signs Under condition, the message is forwarded to other veneers, wherein, the source private net address that the veneer carries the message is according to first Operation rule is handled, and obtains the first address pool block mark of corresponding first address pool block of the message, first fortune Calculating rule is:When input information is identical, output information is also identical.
12. a kind of apparatus for forwarding message, which is characterized in that described device includes:
Interface is obtained, for after the second load balancing table is obtained, obtaining the message from an electronic equipment, in the message extremely Active private net address and purpose public network address are carried less;
Second processor for the source private net address to be handled according to the first operation rule, obtains the message and corresponds to The first address pool block the first address pool block mark;Wherein, first operation rule is:It is defeated when input information is identical It is also identical to go out information;According to the second load balancing table, in the first address pool of corresponding first address pool block of the message In the case that the veneer sign of the corresponding veneer of block identification is the veneer sign of the apparatus for forwarding message, pass through described address pond The corresponding address pool block of block identification distributes source public network address and according to the purpose public network address by the message for the message It is forwarded, the veneer sign of corresponding veneer is identified in the first address pool block of corresponding first address pool block of the message is In the case of other veneer signs, the message is forwarded to other veneers.
CN201310373492.4A 2013-08-23 2013-08-23 A kind of message forwarding method and device Active CN104426794B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310373492.4A CN104426794B (en) 2013-08-23 2013-08-23 A kind of message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310373492.4A CN104426794B (en) 2013-08-23 2013-08-23 A kind of message forwarding method and device

Publications (2)

Publication Number Publication Date
CN104426794A CN104426794A (en) 2015-03-18
CN104426794B true CN104426794B (en) 2018-06-26

Family

ID=52974769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310373492.4A Active CN104426794B (en) 2013-08-23 2013-08-23 A kind of message forwarding method and device

Country Status (1)

Country Link
CN (1) CN104426794B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104852858B (en) * 2015-03-24 2018-11-27 新华三技术有限公司 A kind of flow forwarding method and equipment
CN106330785B (en) * 2015-06-17 2020-08-11 深圳市腾讯计算机系统有限公司 Method and device for selecting service node
CN107743098A (en) * 2017-11-23 2018-02-27 新华三技术有限公司 The method, apparatus and realization device of load balancing between CGN plates
CN109039939B (en) * 2018-07-13 2022-11-01 新华三技术有限公司 Load sharing method and device
CN111491334B (en) * 2019-01-29 2021-05-25 中兴通讯股份有限公司 Load sharing method, device, system, single board and storage medium
CN111082959B (en) * 2019-03-28 2022-08-26 新华三技术有限公司 Load sharing method, device and network equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739820A (en) * 2012-06-28 2012-10-17 杭州华三通信技术有限公司 Message network address conversion processing method and network equipment
CN103117947A (en) * 2013-01-28 2013-05-22 中兴通讯股份有限公司 Load sharing method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247421B (en) * 2008-03-28 2011-09-07 杭州华三通信技术有限公司 Self-adapting distribution method and system of NAT address pool under distributed structure
CN101262506B (en) * 2008-04-21 2012-05-23 杭州华三通信技术有限公司 Allocation method and system for network address conversion port resource under distributed architecture
FR2975851B1 (en) * 2011-05-24 2013-07-05 Airbus Operations Sas METHOD OF TRANSMITTING THE UPLINK OF AN AIRCRAFT.
KR101225853B1 (en) * 2011-05-31 2013-01-23 삼성에스디에스 주식회사 Apparatus and Method for Controlling IP Address of Data
CN102594933B (en) * 2011-12-20 2015-04-08 华为技术有限公司 Method, device and system for address allocation of public networks
CN102404236A (en) * 2011-12-30 2012-04-04 苏州山石网络有限公司 Method for allocating NAT (network address translation) port resources in distributed system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739820A (en) * 2012-06-28 2012-10-17 杭州华三通信技术有限公司 Message network address conversion processing method and network equipment
CN103117947A (en) * 2013-01-28 2013-05-22 中兴通讯股份有限公司 Load sharing method and device

Also Published As

Publication number Publication date
CN104426794A (en) 2015-03-18

Similar Documents

Publication Publication Date Title
CN104426794B (en) A kind of message forwarding method and device
CN110365727B (en) Communication method and related device
CN110896371B (en) Virtual network equipment and related method
CN108768692B (en) A network creation method, related equipment and system
CN109155994B (en) User plane resource management method, user plane network element and control plane network element
CN104954155B (en) The network equipment with multiple business boards and multi-service plate sharing method
CN103312605A (en) Gateway device identity setting method and management gateway device
CN104581652A (en) Message processing method, method and device for selecting MME
CN103004172B (en) Information processing method and load balancing equipment
US9628439B2 (en) Systems and methods for managing network address information
CN112583655A (en) Data transmission method and device, electronic equipment and readable storage medium
CN108574635B (en) Routing priority configuration method, device and controller
CN110460641A (en) Data transmission method, apparatus and system
JP2019510435A (en) Network access method, related device and system
CN114257545B (en) Message forwarding method and device
CN107257558B (en) Message forwarding method and device
CN106953849B (en) Data message matching method and device based on IPv6 address
CN113973098B (en) A method and device for sending a domain name system request
WO2018014708A1 (en) Data transmission method and device
CN106330492A (en) A method, device and system for configuring user equipment forwarding table
CN117354867A (en) Data transmission method, device and storage medium
CN114172753A (en) Address reservation method, network equipment and system
CN109981694B (en) A synchronization method, server and terminal
CN107113853A (en) A kind of D2D unicast communications method, equipment and system
CN113873502B (en) IP address management method, NEF entity and communication system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20211122

Address after: 215010 room 704, building 5, No. 556, Changjiang Road, high tech Zone, Suzhou, Jiangsu

Patentee after: SUZHOU YUDESHUI ELECTRICAL TECHNOLOGY Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211208

Address after: 256599 No. 166, Chemical Road, economic development zone, Boxing County, Binzhou City, Shandong Province

Patentee after: Boxing Rongzhi Technology Innovation Development Co.,Ltd.

Address before: 215010 room 704, building 5, No. 556, Changjiang Road, high tech Zone, Suzhou, Jiangsu

Patentee before: SUZHOU YUDESHUI ELECTRICAL TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230908

Address after: No. 57 Maxing Road, Changping District, Beijing 102200

Patentee after: CHINA ORDNANCE EQUIPMENT GROUP ORDNANCE EQUIPMENT Research Institute

Address before: 256599 No. 166, Chemical Road, economic development zone, Boxing County, Binzhou City, Shandong Province

Patentee before: Boxing Rongzhi Technology Innovation Development Co.,Ltd.

TR01 Transfer of patent right