WO2012083654A1 - Method and distributed system for processing internet protocol packet fragments - Google Patents

Method and distributed system for processing internet protocol packet fragments Download PDF

Info

Publication number
WO2012083654A1
WO2012083654A1 PCT/CN2011/075923 CN2011075923W WO2012083654A1 WO 2012083654 A1 WO2012083654 A1 WO 2012083654A1 CN 2011075923 W CN2011075923 W CN 2011075923W WO 2012083654 A1 WO2012083654 A1 WO 2012083654A1
Authority
WO
WIPO (PCT)
Prior art keywords
line card
module
reassembly
message
packet
Prior art date
Application number
PCT/CN2011/075923
Other languages
French (fr)
Chinese (zh)
Inventor
刘巍巍
吴刚
孙伟
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012083654A1 publication Critical patent/WO2012083654A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2483Traffic characterised by specific attributes, e.g. priority or QoS involving identification of individual flows
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9057Arrangements for supporting packet reassembly or resequencing

Definitions

  • the invention relates to the field of network communication, and specifically relates to a method and a distributed system for processing IP fragments.
  • the packet when the length of the packet exceeds the MTU (Maximum Transmission Unit), the packet needs to be fragmented. After receiving the fragmented packet, the destination device reassembles according to the offset of each fragment. .
  • MTU Maximum Transmission Unit
  • FIG. 1 shows a simplified distributed system composition.
  • Interface line card externally connected to the IP network.
  • Service line card to achieve the processing of the upper layer business.
  • the centralized control line card as the master control node of the system, is responsible for generating the routing table and interface table, and synchronizing to all other line cards.
  • a distributed system usually configures a centralized reassembly module on one or more service line cards or interface line cards, and reassembles the fragmentation message of the system.
  • the prior art implements the centralized reassembly module by sending the fragmented packets.
  • the online card processing causes the fragmented packet (message 1) and the non-fragmented packet (the packet 2) to be transmitted as different packets to be transmitted in different paths in the system, and finally the packets received by the upper layer service are out of order.
  • the problem is that in some business applications in the communication field, messages of the same stream are not allowed to be out of order. Summary of the invention
  • the technical problem to be solved by the present invention is to provide a method for processing IP packet fragmentation and a distributed system to avoid multiple retransmissions of packets.
  • the method for processing the IP packet fragmentation includes: receiving, by the line card, the packet fragmentation;
  • the line card When the line card receives all the fragments of the message, it determines whether the line card is a destination line card; the card; when the line card is the destination line card, the line card reorganizes all the fragments of the message .
  • the step of the line card receiving the message fragmentation includes:
  • the fragment When receiving the subsequent fragment of the packet, the fragment is written into the virtual reassembly queue at the location in the original packet;
  • the method further includes: when the virtual reassembly queue is created, the timer is initialized. If the line card is an interface line card, and all the fragments of the packet are not received within the timeout period, perform the following operations. :
  • the interface line card determines a line card where the centralized reassembly module is located
  • the received message fragment is discarded. If the line card where the centralized reassembly module is located is not the local line card, the interface line card will be received. The message fragment is sent to the line card where the centralized reassembly module is located.
  • the method further includes: when the virtual reassembly queue is created, the timer is initialized, and if the line card is a service line card, and all the fragments of the packet are not received within the time limit, the discarding has been performed. The received message is fragmented.
  • the step of determining whether the line card is a destination line card comprises: determining, by the line card, whether the line card is a destination line card by using a query.
  • the step of determining whether the line card is a destination line card includes: determining whether the line card is a destination line card by determining whether the line card is a line card where the centralized reassembly module is located, and if the line card is not located in the centralized reassembly module, the line card is the destination line card;
  • the service line card directly performs packet reassembly according to the received message fragment.
  • the method further includes: if the currently received packet fragment overlaps or overlaps with the received packet fragment, discarding the currently received packet fragment.
  • the present invention further provides a line card, where the line card includes: a receiving module, configured to: receive a message fragment;
  • the destination line card judging module is configured to: determine whether the line card is a destination line card when receiving all the fragments of the message;
  • a forwarding module configured to: when receiving all the fragments of the packet and the local line card is not the destination line card, send all the fragments of the packet to the destination line card;
  • the message reassembly module is configured to: when all the fragments of the message are received and the line card is the destination line card, all the fragments of the text are reorganized.
  • the receiving module includes:
  • a receiving submodule which is configured to: receive a message fragment
  • a virtual reassembly queue management sub-module configured to: when receiving the first fragment of the packet, create a virtual reassembly queue; and when receiving the subsequent fragmentation of the packet, according to the location of the fragment in the original text Written into the virtual reassembly queue;
  • the fragmentation determination sub-module is configured to: determine whether all fragments of the message are received according to the write status of the virtual reassembly queue.
  • the virtual reassembly queue management sub-module is further configured to: when the virtual re-queue queue is created, initialize a timer; when the line card is an interface line card, the line card further includes a centralized reassembly module line card.
  • the determining module is configured to: determine whether the line card is centralized with the line card where the module is located when all the fragments of the packet are not received within the time limit; the forwarding module is further configured to: When the line card is the line card, the received message fragment is discarded. When the line card where the centralized reassembly module is located is not the line card, the received message fragment is sent to the centralized reassembly module.
  • Line card is further configured to: when the virtual re-queue queue is created, initialize a timer; when the line card is an interface line card, the line card further includes a centralized reassembly module line card.
  • the determining module is configured to: determine whether the line card is centralized
  • the virtual reassembly queue management sub-module is further configured to: when the virtual re-queue queue is created, initialize a timer; when the line card is a service line card, the forwarding module is further configured to: When all fragments of the packet are not received, the received packet fragment is discarded.
  • the destination line card determining module is configured to determine whether the line card is a destination line card by querying a sub-publishing or routing.
  • the destination line card determining module is configured to: when receiving the message fragment, determine whether the line card is a line card where the centralized reassembly module is located. Whether the line card is the destination line card. If the line card is not the centralized reassembly module, the line card is the destination line card.
  • the message reassembly module is configured to directly perform message reassembly according to the received message fragmentation.
  • the present invention also provides a distributed system comprising a plurality of line cards as described above.
  • the line card determines whether the fragmentation of the full packet has been received, and forwards to the destination line card when the reception is complete, and the destination line card implements the message. Reorganization, so as to avoid multiple forwarding and reassembly of packet fragments, saving system resources.
  • FIG. 1 is a schematic diagram of a simplified distributed system in an existing communication technology
  • the fragmented packet and the non-fragmented packet are not transmitted on the same interface board, but the packet is out of order due to the line card where the fragmented packet is sent to the centralized reassembly module;
  • FIG. 3 is a schematic diagram of a method for processing an IP packet fragmentation according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a process for receiving packet fragmentation according to an embodiment of the present invention
  • FIG. 5 is a flowchart of processing a packet fragmentation by an interface line card according to an embodiment of the present invention
  • FIG. 6 is a flowchart of processing a packet fragmentation by a service line card according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of avoiding packet disorder after using a virtual reassembly queue according to an embodiment of the present invention
  • FIG. 8 is a schematic diagram showing a module structure of a line card according to an embodiment of the present invention.
  • the main method of processing the IP packet fragmentation method and the distributed system of the present invention is that the line card of the distributed system judges whether the fragmentation of the full packet has been received, and forwards to the destination line card when the reception is complete, and the destination line card
  • the message is reorganized to avoid multiple forwarding and reassembly of packet fragments, saving system resources and avoiding out-of-order packets.
  • the processing method of the IP fragment of the present invention includes:
  • Step 301 The line card receives the packet fragmentation.
  • Step 302 When the line card receives all the fragments of the packet, determine whether the line card is a destination line card;
  • Step 303 When the line card is not the destination line card, the line card sends all the fragments of the message to the destination line card; when the line card is the destination line card, the line card will All shards were reorganized.
  • step 301 the line card receiving the packet fragmentation specifically includes the following steps: Step 3011: When receiving the first fragment of the packet, create a virtual reassembly queue; Step 3012: Receive the When the subsequent fragmentation of the packet is performed, the fragment is written into the virtual reassembly queue in the original packet.
  • Step 3013 Determine whether all the fragments of the packet are received according to the write status of the virtual reassembly queue.
  • the timer is initialized, if the line card is an interface line card, and all the fragments of the packet are not received within the time limit. , do the following:
  • the interface line card determines a line card where the centralized reassembly module is located
  • the received message fragment is discarded. If the line card where the centralized reassembly module is located is not the local line card, the interface line card will be received. Newspaper The fragment is sent to the line card where the centralized reassembly module is located.
  • the line card is a service line card and does not receive all the fragments of the packet within the time limit, the received message fragment is discarded.
  • the line card determines whether the line card is the destination service line card by querying the sub-publishing or routing.
  • the currently received packet fragment overlaps or overlaps with the received packet fragment, the currently received packet fragment is discarded.
  • the line card When the line card is a service line card, it is determined whether the line card is a destination line card by determining whether the line card is a line card where the centralized reassembly module is located. If the line card is not located in the centralized reassembly module, the line card is The destination line card is determined by determining the line card in which the centralized reassembly module is located, and the service line card directly performs packet reassembly according to the received message fragmentation.
  • Steps 508 through 510 do not have a strict sequence, mainly to determine whether all fragments of the message have been received.
  • 5512 extract source information, destination address, source port, destination port, protocol type and other information from the first piece, find the sub-publish, obtain the destination line card, and transfer to S514;
  • the message is reorganized successfully, and the line card service is sent to the service, and the process ends;
  • the line card is the destination line card, then the real reorganization; otherwise, the virtual reorganization. That is to say, if the online card of the centralized reorganization module is not the destination line card, then the online card performs virtual reorganization, otherwise the real reorganization is performed, and the second card is not forwarded and reorganized.
  • the interface line card does not collect all the fragmented packets within the reassembly timeout period, it performs hash operation according to the source address, destination address, and protocol type of the packet, and obtains centralized reorganization.
  • the line card where the module is located If the online card of the centralized reorganization module is the local line card, the virtual reassembly queue is released, and the reorganization fails; otherwise, the " ⁇ shards in the 4 bar virtual reassembly queue are sent to the centralized reassembly module for reorganization on the online card.
  • the source address, the destination address, the source port, the destination port, and the protocol type are extracted from the first packet, and the information is searched or reported according to the destination address of the packet. Determine whether the message is the line card for business processing or sent to the destination line card for business processing. If the line card performs service processing, the packets in the virtual reassembly queue are successfully reassembled. Otherwise, each fragment packet in the virtual reassembly queue is sent to the destination line card for processing.
  • S601 and S602 do not have a strict sequence.
  • S603 indicates that the current line card is not the line card where the message reassembly module is located, and it must be the destination line card.
  • the message fragment is derived from S516 of the process of Figure 5, indicating that the message received by the same interface line card is received.
  • the transmission path is from the interface line card to the service line card as the destination line card.
  • the message can be reorganized according to the prior art. For example, when the message is reorganized, a timer is set, and the timer is collected. For all fragments, the real message reassembly is performed. Otherwise, the message reorganization fails, and the received >3 ⁇ 4 fragments are discarded.
  • Execution S604 indicating that the current line card is the line card where the centralized reassembly module is located, except for the packet fragmentation.
  • S516, which can be derived from the flow of FIG. 5, may also be derived from S521 of the flow of FIG. 5, indicating that the packets received by different interface line cards are fragmented, and the transmission path is fragmented by a different interface line card. Converged to the line card where the centralized reassembly module is located.
  • Steps 610 through 612 do not have a strict sequence, mainly to determine whether all fragments of the message have been received.
  • Execution S617 indicates that the current line card is both the line card where the centralized reassembly module is located, and the destination line card, for real " ⁇ text reorganization.
  • All the fragmented packets in the virtual reassembly queue are distributed to the destination line card for processing, and the process ends; executing S618 identifies that the current line card is only the line card where the centralized reassembly module is located, instead of the destination line.
  • the card is virtual reorganized according to the virtual reassembly queue, sent to the destination line card, and then the real line message is reassembled by the destination line card.
  • step S602 may be performed after receiving the fragmented message without performing steps S602 and S603.
  • the reassembly timeout period Extract the information such as the source address, the destination address, the source port, the destination port, and the protocol type from the first packet, check the distribution or check the route according to the destination address of the packet, and determine whether the packet is the line card for service processing or delivery to the destination line.
  • the card performs business processing. If the line card performs service processing, the packets in the virtual reassembly queue are successfully reassembled. Otherwise, each fragment packet in the virtual reassembly queue is sent to the destination line card for processing.
  • the invention only realizes real message reorganization in the destination line card, can avoid secondary reorganization, save system resources, and improve system performance.
  • the virtual reassembly queue can be used to forward the packets in the virtual reassembly queue of a certain packet in a centralized manner, so that the packets of different packets are relatively fragmented. Packets that are independent of other packets are fragmented. The packets are isolated from each other to prevent the packets received from the upper-layer services from being out of order.
  • the message transmission path is as shown in Figure 7.
  • the fragment 1 and the fragment 2 of the packet 1 are sent to the service line card without going through the line card where the centralized reassembly module is located, and The transmission path of the packet 2 is the same, thereby avoiding the disorder between the message 1 and the message 2.
  • the present invention further provides a line card.
  • the line card includes:
  • a receiving module 80 configured to receive a message fragment
  • the destination line card judging module 81 is configured to: determine whether the line card is a destination line card when receiving all the fragments of the message;
  • the forwarding module 82 is configured to: when all the fragments of the packet are received and the local line card is not the destination line card, send all the fragments of the packet to the destination line card;
  • the message reassembly module 83 is configured to: when all the fragments of the message are received and the line card is the destination line card, all the fragments of the text are reorganized.
  • the receiving module 80 includes:
  • a receiving submodule 801 configured to receive a message fragment
  • a virtual reassembly queue management sub-module 802 configured to: when receiving the first fragment of the packet, create a virtual reassembly queue; and when receiving the subsequent fragment of the packet, according to the fragment in the original text The location is written into the virtual reassembly queue;
  • the fragmentation determining sub-module 803 is configured to determine whether all fragments of the message are received according to the writing condition of the virtual reassembly queue.
  • the virtual reassembly queue management sub-module 802 is further configured to initialize a timer when the virtual reassembly queue is created, and when the line card is an interface line card, further include a centralized reassembly module line card judging module (If not shown in the figure, it is set as follows: When all the fragments of the packet are not received within the time limit, it is determined whether the line card is centralized or not, and the forwarding module 82 is further set in the centralized When the line card where the reassembly module is located is the line card, the received packet fragments are discarded. When the line card where the centralized reassembly module is located is not the line card, the received message fragments are sent to the centralized reassembly. The line card where the module is located.
  • the virtual reassembly queue management sub-module 802 is further configured to: when the virtual re-queue queue is created, the timer is initialized, and when the line card is a service line card, the forwarding module 82 is further set to be in timing. When all the fragments of the packet are not received within the time, the received packet fragment is discarded.
  • the destination line card judging module 81 is configured to determine the line card by querying a sub-publishing or routing. Whether it is the destination line card.
  • the destination line card determining module 81 is configured to: when receiving the message fragment, determine whether the line card is a centralized reassembly module. The line card determines whether the line card is the destination line card. If it is not the line card where the centralized reassembly module is located, the line card is the destination line card. The line card is determined by determining the line card where the centralized reassembly module is located.
  • the message reassembly module 83 is configured to directly perform message reassembly according to the received message fragmentation, including: if all the fragmentation is received within the time limit, the reorganization is successful, otherwise the reorganization fails and is discarded. The received message is fragmented.
  • the present invention also provides a distributed system comprising a plurality of line cards as described above.
  • the method, the device and the system of the present invention enable the fragmented message to be reorganized only on the line card (ie, the destination line card) that is processed by the upper layer service. Otherwise, only the virtual reorganization is performed, thereby avoiding the traditional implementation of sending the fragmented message to the centralized device.
  • the drawbacks caused by the real reorganization and redistribution of the online card of the reorganization module, such as the centralized reorganization module, are easy to become the system bottleneck.
  • the retransmission of the message between the online cards may lead to secondary fragmentation and reorganization, as well as packet disorder.
  • the traditional telecom field implementation is a brain that sends fragmented packets to the centralized card processing of the centralized reassembly module.
  • the present invention can improve the performance of the reorganization performance in order to avoid excessive load on the board and affect business operations. It avoids the performance loss caused by unnecessary re-segmentation and re-reorganization after the message is reorganized, and improves the efficiency of message processing.
  • the message can be saved because the message does not need to be sent to the centralized reassembly module to reorganize the online card.
  • the system's virtual reorganization can be enabled or disabled through background configuration.
  • the present invention resides on a plurality of interface line cards or service line cards to reside in a centralized reassembly module, thereby realizing the load balancing of the virtual reorganization on the online card of the centralized reassembly module.
  • the line card determines whether the fragmentation of the full message has been received, and forwards the packet to the destination line card when the reception is complete, and the destination line card reconciles the message, thereby avoiding multiple forwarding and reassembly of the packet fragmentation. Save system resources.

Landscapes

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

Abstract

The present invention discloses a method, a line card and a distributed system for processing Internet Protocol (IP) packet fragments. The method includes: the line card receives the packet fragments (301); when receiving all the fragments of the packet, the line card determines whether the line card is the destination line card (302); when the line card is not the destination line card, the line card transmits all the fragments of the packet to the destination line card; when the line card is the destination line card, the line card reassembles all the fragments of the packet (303).

Description

IP报文分片的处理方法和分布式系统  IP message fragmentation processing method and distributed system
技术领域 Technical field
本发明涉及网络通信领域, 具体为一种 IP · ^艮文分片的处理方法和分布式 系统。  The invention relates to the field of network communication, and specifically relates to a method and a distributed system for processing IP fragments.
背景技术 Background technique
IP网络中, 当 4艮文长度超过 MTU ( Maximum Transmission Unit , 最大传 输单元) 时, 需将报文分片发送; 目的设备接收到分片报文后, 根据各分片 的偏移量进行重组。  In the IP network, when the length of the packet exceeds the MTU (Maximum Transmission Unit), the packet needs to be fragmented. After receiving the fragmented packet, the destination device reassembles according to the offset of each fragment. .
分布式系统通常包括集中控制线卡、 业务线卡以及接口线卡, 这些线卡 之间通过内部总线进行通信。 图 1示出了简化的分布式系统组成。接口线卡, 对外连接 IP网络。 业务线卡, 实现上层业务的处理。 集中控制线卡, 作为系 统的总控节点, 负责生成路由表和接口表, 并同步给所有其他线卡。  Distributed systems typically include centralized control line cards, line cards, and interface line cards that communicate over the internal bus. Figure 1 shows a simplified distributed system composition. Interface line card, externally connected to the IP network. Service line card, to achieve the processing of the upper layer business. The centralized control line card, as the master control node of the system, is responsible for generating the routing table and interface table, and synchronizing to all other line cards.
现有技术中,分布式系统通常在一个或多个业务线卡或接口线卡上配置 集中重组模块, 重组目的地为本系统的分片报文。  In the prior art, a distributed system usually configures a centralized reassembly module on one or more service line cards or interface line cards, and reassembles the fragmentation message of the system.
申请于 2007年 4月 28 日的中国专利 CN200710097246提出了一种配置 重组接口线卡的选择原则, 将不同报文的分片发到不同的接口线卡上进行重 组, 以在一定程度上分担重组模块所在线卡的负荷, 提高了重组速度。 由于 无论从一个还是多个接口线卡收到分片报文, 都会送到集中重组模块所在线 卡上处理, 这样会造成报文在接口线卡、 集中重组模块所在线卡、 业务线卡 之间多次转发。 并且, 受线卡间报文通道所限, 集中重组后的报文在线卡间 转发可能会出现再次分片重组的现象。  Applying the Chinese patent CN200710097246 on April 28, 2007, the principle of selecting a reconfigurable interface line card is proposed. The fragments of different packets are sent to different interface line cards for reorganization, so as to share the reorganization to some extent. The load on the online card of the module increases the speed of reorganization. If a fragmented packet is received from one or more interface line cards, it will be sent to the online card of the centralized reassembly module for processing. This will result in the packet being on the interface line card, the centralized reassembly module, the online card, and the service line card. Forwarded multiple times. Moreover, due to the limitation of the message channel between the line cards, the mediation between the centralized and reassembled messages may be re-sliced again.
此外, 如图 2所示, 即使同一接口线卡收到所有分片报文, 并且分片报 文和非分片报文没有交叉传输, 现有技术实现由于将分片报文送集中重组模 块所在线卡处理,导致分片报文(报文 1 )和作为小包的非分片报文(报文 2 ) 在系统内走不同的路径传输,最终造成上层业务接收到的报文出现乱序问题, 而在通信领域的一些业务应用中对于同一个流的报文是不允许乱序的。 发明内容 In addition, as shown in FIG. 2, even if the same interface line card receives all the fragmented packets, and the fragmented and non-fragmented packets are not cross-transmitted, the prior art implements the centralized reassembly module by sending the fragmented packets. The online card processing causes the fragmented packet (message 1) and the non-fragmented packet (the packet 2) to be transmitted as different packets to be transmitted in different paths in the system, and finally the packets received by the upper layer service are out of order. The problem is that in some business applications in the communication field, messages of the same stream are not allowed to be out of order. Summary of the invention
本发明要解决的技术问题是提供一种 IP报文分片的处理方法和分布式系 统, 以避免报文多次转发重组。  The technical problem to be solved by the present invention is to provide a method for processing IP packet fragmentation and a distributed system to avoid multiple retransmissions of packets.
为解决以上问题, 本发明提供的 IP报文分片的处理方法包括: 线卡接收报文分片;  To solve the above problem, the method for processing the IP packet fragmentation provided by the present invention includes: receiving, by the line card, the packet fragmentation;
所述线卡接收到报文的所有分片时, 判断本线卡是否是目的线卡; 卡; 本线卡是目的线卡时, 所述线卡将所述报文的所有分片进行重组。  When the line card receives all the fragments of the message, it determines whether the line card is a destination line card; the card; when the line card is the destination line card, the line card reorganizes all the fragments of the message .
可选地, 所述线卡接收报文分片的步骤包括:  Optionally, the step of the line card receiving the message fragmentation includes:
接收所述报文的第一个分片时, 创建一个虚拟重组队列;  When receiving the first fragment of the packet, create a virtual reassembly queue;
接收所述报文的后续分片时, 按分片在原始报文中的位置写入所述虚拟 重组队列中;  When receiving the subsequent fragment of the packet, the fragment is written into the virtual reassembly queue at the location in the original packet;
根据虚拟重组队列的写入情况判断是否接收到报文的所有分片。  Determine whether all fragments of the packet are received according to the write status of the virtual reassembly queue.
可选地, 上述方法还包括: 创建所述虚拟重组队列时, 初始化定时器, 若所述线卡为接口线卡, 且在定时时间内未接收到报文的所有分片时, 执行 以下操作:  Optionally, the method further includes: when the virtual reassembly queue is created, the timer is initialized. If the line card is an interface line card, and all the fragments of the packet are not received within the timeout period, perform the following operations. :
所述接口线卡确定集中重组模块所在的线卡;  The interface line card determines a line card where the centralized reassembly module is located;
若所述集中重组模块所在的线卡是本线卡, 则丟弃已接收的报文分片, 若所述集中重组模块所在的线卡不是本线卡, 则所述接口线卡将已接收的报 文分片发送到集中重组模块所在的线卡。  If the line card where the centralized reassembly module is located is the local line card, the received message fragment is discarded. If the line card where the centralized reassembly module is located is not the local line card, the interface line card will be received. The message fragment is sent to the line card where the centralized reassembly module is located.
可选地, 上述方法还包括: 创建所述虚拟重组队列时, 初始化定时器, 若所述线卡为业务线卡, 且在定时时间内未接收到报文的所有分片时, 丟弃 已接收的报文分片。  Optionally, the method further includes: when the virtual reassembly queue is created, the timer is initialized, and if the line card is a service line card, and all the fragments of the packet are not received within the time limit, the discarding has been performed. The received message is fragmented.
可选地, 所述判断本线卡是否是目的线卡的步骤包括: 所述线卡通过查 询分发表或路由确定本线卡是否为目的线卡。  Optionally, the step of determining whether the line card is a destination line card comprises: determining, by the line card, whether the line card is a destination line card by using a query.
可选地, 所述线卡为业务线卡时, 所述判断本线卡是否是目的线卡的步 骤包括: 通过判断本线卡是否为集中重组模块所在的线卡, 来确定本线卡是 否是目的线卡, 若不是集中重组模块所在的线卡, 则本线卡为目的线卡; 通 过判断集中重组模块所在的线卡的方式, 确定本线卡为目的线卡时, 所述业 务线卡根据接收的报文分片直接进行报文重组。 Optionally, when the line card is a service line card, the step of determining whether the line card is a destination line card The method includes: determining whether the line card is a destination line card by determining whether the line card is a line card where the centralized reassembly module is located, and if the line card is not located in the centralized reassembly module, the line card is the destination line card; When the line card of the reassembly module is centralized, and the line card is determined to be the destination line card, the service line card directly performs packet reassembly according to the received message fragment.
可选地, 上述方法还包括: 若当前接收的报文分片与已接收的报文分片 重复或重叠, 则丟弃所述当前接收的报文分片。  Optionally, the method further includes: if the currently received packet fragment overlaps or overlaps with the received packet fragment, discarding the currently received packet fragment.
为解决以上技术问题, 本发明还提供了一种线卡, 所述线卡包括: 接收模块, 其设置为: 接收报文分片;  In order to solve the above technical problem, the present invention further provides a line card, where the line card includes: a receiving module, configured to: receive a message fragment;
目的线卡判断模块, 其设置为: 在接收到报文的所有分片时, 判断本线 卡是否是目的线卡;  The destination line card judging module is configured to: determine whether the line card is a destination line card when receiving all the fragments of the message;
转发模块, 其设置为: 在接收到报文的所有分片且本线卡不是目的线卡 时, 将所述报文的所有分片发送给目的线卡; 以及  a forwarding module, configured to: when receiving all the fragments of the packet and the local line card is not the destination line card, send all the fragments of the packet to the destination line card;
报文重组模块, 其设置为: 接收到报文的所有分片且本线卡是目的线卡 时, 将所述 文的所有分片进行重组。  The message reassembly module is configured to: when all the fragments of the message are received and the line card is the destination line card, all the fragments of the text are reorganized.
可选地, 所述接收模块包括:  Optionally, the receiving module includes:
接收子模块, 其设置为: 接收报文分片;  a receiving submodule, which is configured to: receive a message fragment;
虚拟重组队列管理子模块, 其设置为: 接收所述报文的第一个分片时, 创建一个虚拟重组队列; 以及在接收所述报文的后续分片时, 按分片在原始 文中的位置写入所述虚拟重组队列中; 以及  a virtual reassembly queue management sub-module, configured to: when receiving the first fragment of the packet, create a virtual reassembly queue; and when receiving the subsequent fragmentation of the packet, according to the location of the fragment in the original text Written into the virtual reassembly queue;
分片判断子模块, 其设置为: 根据所述虚拟重组队列的写入情况判断是 否接收到报文的所有分片。  The fragmentation determination sub-module is configured to: determine whether all fragments of the message are received according to the write status of the virtual reassembly queue.
可选地, 所述虚拟重组队列管理子模块还设置为: 在创建所述虚拟重组 队列时, 初始化定时器; 所述线卡为接口线卡时, 所述线卡还包括集中重组 模块线卡判断模块, 其设置为: 在定时时间内未接收到报文的所有分片时, 确定本线卡是否集中重组模块所在的线卡; 所述转发模块还设置为: 在所述 集中重组模块所在的线卡是本线卡时, 丟弃已接收的报文分片, 在所述集中 重组模块所在的线卡不是本线卡时, , 将已接收的报文分片发送到集中重组 模块所在的线卡。 可选地, 所述虚拟重组队列管理子模块还设置为: 在创建所述虚拟重组 队列时, 初始化定时器; 所述线卡为业务线卡时, 所述转发模块还设置为: 在定时时间内未接收到报文的所有分片时, 丟弃已接收的报文分片。 Optionally, the virtual reassembly queue management sub-module is further configured to: when the virtual re-queue queue is created, initialize a timer; when the line card is an interface line card, the line card further includes a centralized reassembly module line card. The determining module is configured to: determine whether the line card is centralized with the line card where the module is located when all the fragments of the packet are not received within the time limit; the forwarding module is further configured to: When the line card is the line card, the received message fragment is discarded. When the line card where the centralized reassembly module is located is not the line card, the received message fragment is sent to the centralized reassembly module. Line card. Optionally, the virtual reassembly queue management sub-module is further configured to: when the virtual re-queue queue is created, initialize a timer; when the line card is a service line card, the forwarding module is further configured to: When all fragments of the packet are not received, the received packet fragment is discarded.
可选地, 所述目的线卡判断模块是设置为通过查询分发表或路由确定本 线卡是否为目的线卡。  Optionally, the destination line card determining module is configured to determine whether the line card is a destination line card by querying a sub-publishing or routing.
可选地, 所述线卡为业务线卡时, 所述目的线卡判断模块是设置为: 在 接收到报文分片时, 通过判断本线卡是否为集中重组模块所在的线卡来确定 本线卡是否是目的线卡, 若不是集中重组模块所在的线卡, 则本线卡为目的 线卡; 所述报文重组模块是设置为根据接收的报文分片直接进行报文重组。  Optionally, when the line card is a service line card, the destination line card determining module is configured to: when receiving the message fragment, determine whether the line card is a line card where the centralized reassembly module is located. Whether the line card is the destination line card. If the line card is not the centralized reassembly module, the line card is the destination line card. The message reassembly module is configured to directly perform message reassembly according to the received message fragmentation.
为解决上述技术问题, 本发明还提供一种分布式系统, 包括多个如上所 述的线卡。  In order to solve the above technical problems, the present invention also provides a distributed system comprising a plurality of line cards as described above.
本发明 IP报文分片的处理方法、 线卡和分布式系统中, 线卡判断是否已 接收全报文的分片, 并在接收齐全时转发给目的线卡, 由目的线卡实现报文 重组, 从而避免报文分片的多次转发和重组, 节约系统资源。 In the processing method of the IP packet fragmentation, the line card and the distributed system of the present invention, the line card determines whether the fragmentation of the full packet has been received, and forwards to the destination line card when the reception is complete, and the destination line card implements the message. Reorganization, so as to avoid multiple forwarding and reassembly of packet fragments, saving system resources.
附图概述 BRIEF abstract
此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中:  The drawings are intended to provide a further understanding of the invention, and are intended to be illustrative of the invention. In the drawing:
图 1是现有通信技术中, 简化的分布式系统示意图;  1 is a schematic diagram of a simplified distributed system in an existing communication technology;
图 2是现有技术中, 分片报文和非分片报文在同一个接口板上没有交叉 传输, 但由于分片报文送集中重组模块所在的线卡, 出现报文乱序;  2, in the prior art, the fragmented packet and the non-fragmented packet are not transmitted on the same interface board, but the packet is out of order due to the line card where the fragmented packet is sent to the centralized reassembly module;
图 3是本发明实施方式的接收 IP报文分片的处理方法的示意图; 图 4是本发明实施方式的接收报文分片的过程示意图;  3 is a schematic diagram of a method for processing an IP packet fragmentation according to an embodiment of the present invention; FIG. 4 is a schematic diagram of a process for receiving packet fragmentation according to an embodiment of the present invention;
图 5是本发明实施方式中接口线卡对报文分片进行处理的流程图; 图 6是本发明实施方式中业务线卡对报文分片进行处理的流程图; 图 7是本发明实施方式中釆用虚拟重组队列后避免报文乱序的示意图; 图 8是本发明本发明实施方式中线卡的模块结构示意图。 5 is a flowchart of processing a packet fragmentation by an interface line card according to an embodiment of the present invention; FIG. 6 is a flowchart of processing a packet fragmentation by a service line card according to an embodiment of the present invention; FIG. 7 is a schematic diagram of avoiding packet disorder after using a virtual reassembly queue according to an embodiment of the present invention; FIG. 8 is a schematic diagram showing a module structure of a line card according to an embodiment of the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
本发明 IP报文分片的处理方法和分布式系统的主要思想是分布式系统的 线卡判断是否已接收全报文的分片, 并在接收齐全时转发给目的线卡, 由目 的线卡实现报文重组, 从而避免报文分片的多次转发和重组, 节约系统资源, 避免报文乱序。  The main method of processing the IP packet fragmentation method and the distributed system of the present invention is that the line card of the distributed system judges whether the fragmentation of the full packet has been received, and forwards to the destination line card when the reception is complete, and the destination line card The message is reorganized to avoid multiple forwarding and reassembly of packet fragments, saving system resources and avoiding out-of-order packets.
如图 3所示, 本发明 IP · ^艮文分片的处理方法包括:  As shown in FIG. 3, the processing method of the IP fragment of the present invention includes:
步骤 301 : 线卡接收报文分片;  Step 301: The line card receives the packet fragmentation.
步骤 302: 所述线卡接收到报文的所有分片时, 判断本线卡是否是目的 线卡;  Step 302: When the line card receives all the fragments of the packet, determine whether the line card is a destination line card;
步骤 303 : 本线卡不是目的线卡时, 所述线卡将所述报文的所有分片发 送给目的线卡; 本线卡是目的线卡时, 所述线卡将所述报文的所有分片进行 重组。  Step 303: When the line card is not the destination line card, the line card sends all the fragments of the message to the destination line card; when the line card is the destination line card, the line card will All shards were reorganized.
如图 4所示, 步骤 301 , 线卡接收报文分片时具体包括以下步骤: 步骤 3011 : 接收所述报文的第一个分片时, 创建一个虚拟重组队列; 步骤 3012: 接收所述报文的后续分片时, 按分片在原始报文中的位置写 入所述虚拟重组队列中;  As shown in FIG. 4, step 301, the line card receiving the packet fragmentation specifically includes the following steps: Step 3011: When receiving the first fragment of the packet, create a virtual reassembly queue; Step 3012: Receive the When the subsequent fragmentation of the packet is performed, the fragment is written into the virtual reassembly queue in the original packet.
步骤 3013: 根据虚拟重组队列的写入情况判断是否接收到报文的所有分 片。  Step 3013: Determine whether all the fragments of the packet are received according to the write status of the virtual reassembly queue.
为了保证对接收报文分片的时效性控制, 创建所述虚拟重组队列时, 初 始化定时器, 若所述线卡为接口线卡, 且在定时时间内未接收到报文的所有 分片时, 执行以下操作:  To ensure the time-dependent control of the received packet fragmentation, when the virtual reassembly queue is created, the timer is initialized, if the line card is an interface line card, and all the fragments of the packet are not received within the time limit. , do the following:
所述接口线卡确定集中重组模块所在的线卡;  The interface line card determines a line card where the centralized reassembly module is located;
若所述集中重组模块所在的线卡是本线卡, 则丟弃已接收的报文分片, 若所述集中重组模块所在的线卡不是本线卡, 则所述接口线卡将已接收的报 文分片发送到集中重组模块所在的线卡。 If the line card where the centralized reassembly module is located is the local line card, the received message fragment is discarded. If the line card where the centralized reassembly module is located is not the local line card, the interface line card will be received. Newspaper The fragment is sent to the line card where the centralized reassembly module is located.
若所述线卡为业务线卡, 且在定时时间内未接收到报文的所有分片时, 丟弃已接收的报文分片。  If the line card is a service line card and does not receive all the fragments of the packet within the time limit, the received message fragment is discarded.
所述线卡通过查询分发表或路由确定本线卡是否为目的业务线卡。  The line card determines whether the line card is the destination service line card by querying the sub-publishing or routing.
若当前接收的报文分片与已接收的报文分片重复或重叠, 则丟弃所述当 前接收的报文分片。  If the currently received packet fragment overlaps or overlaps with the received packet fragment, the currently received packet fragment is discarded.
所述线卡为业务线卡时, 通过判断本线卡是否为集中重组模块所在的线 卡来确定本线卡是否是目的线卡, 若不是集中重组模块所在的线卡, 则本线 卡为目的线卡; 通过判断集中重组模块所在的线卡的方式确定本线卡为目的 线卡时, 所述业务线卡根据接收的报文分片直接进行报文重组。  When the line card is a service line card, it is determined whether the line card is a destination line card by determining whether the line card is a line card where the centralized reassembly module is located. If the line card is not located in the centralized reassembly module, the line card is The destination line card is determined by determining the line card in which the centralized reassembly module is located, and the service line card directly performs packet reassembly according to the received message fragmentation.
为了使本发明的目的、 技术方案及优点更加清楚明白, 以下结合附图及 实施例, 对本发明进行进一步详细说明。 需要说明的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。 应当理解, 此处所描述 的具体实施例仅仅用以解释本发明, 并不用于限定本发明。 实施例一  The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. Embodiment 1
参考图 5 , 说明接口线卡上分片报文重组的完整工作流程, 包括以下步 骤:  Refer to Figure 5 for the complete workflow of fragment packet reassembly on the interface line card, including the following steps:
5501 , 接收报文分片;  5501, receiving a message fragment;
5502 ,判断接收的报文分片是否是最先到达的分片,若是,则转入 S503 ; 否则, 转入 S504;  5502, determining whether the received packet fragment is the first arriving fragment, and if yes, proceeding to S503; otherwise, transferring to S504;
5503 , 创建虚拟重组队列, 初始化超时定时器, 转 507;  5503, create a virtual reassembly queue, initialize a timeout timer, and transfer 507;
5504 , 判断接收的报文分片是否与已接收的报文分片重复, 若是, 则转 入 S506; 否则, 转入 S505;  5504, determining whether the received packet fragmentation is repeated with the received packet fragment, and if yes, proceeding to S506; otherwise, proceeding to S505;
5505 , 判断接收的报文分片是否与已接受的报文分片存在重叠, 若是, 则转入 S506; 否则, 转入 S507;  5505, determining whether the received packet fragment overlaps with the accepted packet fragment, and if yes, proceeds to S506; otherwise, proceeds to S507;
5506 , 丟弃当前接收的分片;  5506, discarding the currently received fragment;
5507 , 才艮据分片偏移量, 插入本分片到虚拟重组队列; 5508, 判断尾片是否已到达, 若是, 则转入 S309; 否则, 转入 S517;5507, according to the fragment offset, insert the fragment into the virtual reassembly queue; 5508, determining whether the tail piece has arrived, and if so, then proceeds to S309; otherwise, proceeds to S517;
5509, 判断首片是否已到达, 若是, 则转入 S310; 否则, 转入 S517;5509, determining whether the first piece has arrived, and if so, then transferring to S310; otherwise, transferring to S517;
5510, 判断虚拟重组队列是否有空洞, 若有, 则转入 S517; 否则, 转入 S511 ; 5510, determining whether there is a hole in the virtual reorganization queue, if yes, then transferring to S517; otherwise, transferring to S511;
步骤 508至 510并无严格的先后顺序, 主要是为了判断是否已收到报文 的所有分片。  Steps 508 through 510 do not have a strict sequence, mainly to determine whether all fragments of the message have been received.
5511 ,判断是否存在报文分发表,若存在,则转入 S512;否则,转入 S513; 5511, judging whether there is a message sub-publication, if it exists, then transferring to S512; otherwise, transferring to S513;
5512 , 从首片中提取源地址、 目的地址、 源端口、 目的端口、 协议类型 等信息, 查找分发表, 得到目的线卡, 转入 S514 ; 5512, extract source information, destination address, source port, destination port, protocol type and other information from the first piece, find the sub-publish, obtain the destination line card, and transfer to S514;
S513 , 查找路由表, 得到目的线卡;  S513. Find a routing table to obtain a destination line card.
5514,判断本线卡是否目的线卡, 若是, 则转入 S515; 否则,转入 S516; 5514, determine whether the line card is a destination line card, and if so, then proceeds to S515; otherwise, proceeds to S516;
5515 , 报文重组成功, 上送本线卡业务处理, 流程结束; 5515, the message is reorganized successfully, and the line card service is sent to the service, and the process ends;
5516, 将虚拟重组队列中所有分片送目的线卡处理, 流程结束;  5516: All the fragments in the virtual reassembly queue are sent to the destination line card for processing, and the process ends;
5517 , 判断定时器是否超时, 若是, 则转 S518; 否则, 转 S501 , 继续接 收报文分片;  5517. Determine whether the timer expires. If yes, go to S518; otherwise, go to S501 and continue to receive the packet fragmentation;
5518 , 从报文中提取源地址、 目的地址、 协议类型等信息做哈希运算, 得到集中重组模块所在目的线卡;  5518, extracting source information, destination address, protocol type and other information from the message to perform hash operation, and obtaining the destination line card of the centralized reorganization module;
5519, 判断本线卡是否该集中重组模块所在线卡, 若是, 转 S520; 否则, 转 S521 ;  5519, judge whether the line card should be centralized to reorganize the module's online card, and if so, go to S520; otherwise, turn to S521;
S520, 释放虚拟重组队列, ^艮文重组失败, 流程结束;  S520, releasing the virtual reorganization queue, the reorganization fails, and the process ends;
S521 , 将虚拟重组队列中所有分片报文分发到集中重组模块所在线卡处 理, 流程结束。  S521: All the fragmented packets in the virtual reassembly queue are distributed to the online card processing of the centralized reassembly module, and the process ends.
根据以上流程可以看出, 是否执行真实重组, 与集中重组模块在不在本 线卡无关, 只有一个原则: 本线卡是目的线卡, 则真实重组; 否则, 虚拟重 组。 也就是说, 集中重组模块所在线卡不是目的线卡, 则它所在线卡执行虚 拟重组, 否则执行真实重组, 不会二次转发和重组了。 根据以上流程, 对于接口线卡来说, 如果在重组超时时间内, 没有收齐 所有分片报文, 则根据报文的源地址、 目的地址、 协议类型等信息做哈希运 算, 得到集中重组模块所在的线卡。 若该集中重组模块所在线卡是本线卡, 则释放虚拟重组队列, 文重组失败; 否则, 4巴虚拟重组队列中的 "^艮文分片 发送到集中重组模块所在线卡上重组。 According to the above process, it can be seen whether the real reorganization is performed, and the centralized reorganization module is not related to the line card. There is only one principle: the line card is the destination line card, then the real reorganization; otherwise, the virtual reorganization. That is to say, if the online card of the centralized reorganization module is not the destination line card, then the online card performs virtual reorganization, otherwise the real reorganization is performed, and the second card is not forwarded and reorganized. According to the above process, if the interface line card does not collect all the fragmented packets within the reassembly timeout period, it performs hash operation according to the source address, destination address, and protocol type of the packet, and obtains centralized reorganization. The line card where the module is located. If the online card of the centralized reorganization module is the local line card, the virtual reassembly queue is released, and the reorganization fails; otherwise, the "^艮 shards in the 4 bar virtual reassembly queue are sent to the centralized reassembly module for reorganization on the online card.
如果在重组超时时间内, 收齐所有分片报文, 则从首片报文中提取源地 址、 目的地址、 源端口、 目的端口、 协议类型等信息, 查分发表或根据报文 目的地址查路由, 决定报文是本线卡进行业务处理或送到目的线卡进行业务 处理。 若是本线卡进行业务处理, 则将虚拟重组队列中的报文重组成功; 否 则, 将虚拟重组队列中的各分片报文发送到目的线卡处理。  If all the fragmented packets are received within the reassembly timeout period, the source address, the destination address, the source port, the destination port, and the protocol type are extracted from the first packet, and the information is searched or reported according to the destination address of the packet. Determine whether the message is the line card for business processing or sent to the destination line card for business processing. If the line card performs service processing, the packets in the virtual reassembly queue are successfully reassembled. Otherwise, each fragment packet in the virtual reassembly queue is sent to the destination line card for processing.
实施例二 Embodiment 2
参考图 6 , 说明业务线卡上分片报文重组的完整工作流程, 包括以下步 骤:  Refer to Figure 6 for the complete workflow of fragment packet reassembly on the service line card, including the following steps:
S601 , 接收报文分片;  S601, receiving a packet fragmentation;
5602 , 判断本线卡是否是集中重组模块所在线卡, 若否, 则转入 S603 ; 是, 则转入 S604;  5602, determining whether the line card is a online card of the centralized reorganization module, if not, then transferring to S603; if yes, proceeding to S604;
S601和 S602没有严格的先后顺序。  S601 and S602 do not have a strict sequence.
5603 , 进行报文重组, 流程结束;  5603, the message is reorganized, and the process ends;
一般来说, 执行 S603 , 表示当前线卡不是报文重组模块所在的线卡, 则 一定是目的线卡, 报文分片来源于图 5流程的 S516 , 表明由同一个接口线卡 接收的报文分片, 其传输路径是从接口线卡到达作为目的线卡的业务线卡, 具体可根据现有技术进行报文重组, 如进行报文重组时设定定时器, 定时器 时间内收齐所有分片, 则进行真实报文重组, 否则报文重组失败, 丟弃接收 的>¾文分片。  Generally, if S603 is executed, it indicates that the current line card is not the line card where the message reassembly module is located, and it must be the destination line card. The message fragment is derived from S516 of the process of Figure 5, indicating that the message received by the same interface line card is received. For the fragmentation, the transmission path is from the interface line card to the service line card as the destination line card. Specifically, the message can be reorganized according to the prior art. For example, when the message is reorganized, a timer is set, and the timer is collected. For all fragments, the real message reassembly is performed. Otherwise, the message reorganization fails, and the received >3⁄4 fragments are discarded.
5604 ,判断接收的报文分片是否是最先到达的分片,若是,则转入 S605; 否则, 转入 S606;  5604, determining whether the received packet fragmentation is the first arriving fragment, and if yes, proceeding to S605; otherwise, proceeding to S606;
执行 S604 , 表示当前线卡是集中重组模块所在的线卡, 报文分片除了可 能来源于图 5流程的 S516,还可能来源于图 5流程的 S521 ,表明由不同接口 线卡接收的报文分片, 其传输路径是由不同接口线卡将其接收的部分报文分 片汇聚到集中重组模块所在的线卡。 Execution S604, indicating that the current line card is the line card where the centralized reassembly module is located, except for the packet fragmentation. S516, which can be derived from the flow of FIG. 5, may also be derived from S521 of the flow of FIG. 5, indicating that the packets received by different interface line cards are fragmented, and the transmission path is fragmented by a different interface line card. Converged to the line card where the centralized reassembly module is located.
S605 , 创建虚拟重组队列, 初始化超时定时器, 转 S609;  S605, creating a virtual reassembly queue, initializing a timeout timer, and transferring to S609;
S606 , 判断接收的报文分片是否与已接收的报文分片重复, 若是, 则转 入 608; 否则, 转入 S607;  S606, determining whether the received packet fragmentation is repeated with the received packet fragment, and if yes, proceeding to 608; otherwise, proceeding to S607;
5607 , 判断接收的报文分片是否与已接受的报文分片存在重叠, 若是, 则转入 S608; 否则, 转入 S609;  5607, determining whether the received message fragment overlaps with the accepted message fragment, if yes, then proceeds to S608; otherwise, proceeds to S609;
5608, 丟弃当前接收的分片;  5608, discarding the currently received fragment;
S609 , 根据分片偏移量, 插入本分片到虚拟重组队列, 也即根据报文分 片在原始报文中的位置进行有序緩存;  S609. Insert the fragment into the virtual reassembly queue according to the fragment offset, that is, perform an orderly buffer according to the location of the packet fragment in the original packet.
5610, 判断尾片是否已到达, 若是, 则转入 S611否则, 转入 S619; 5610, determine whether the tail piece has arrived, and if so, then proceeds to S611 otherwise, and proceeds to S619;
5611 , 判断首片是否已到达, 若是, 则转入 S612; 否则, 转入 S619;5611, to determine whether the first film has arrived, and if so, then proceeds to S612; otherwise, proceeds to S619;
5612, 判断虚拟重组队列是否有空洞。 若有, 则转入 S619; 否则, 转入 S613; 5612. Determine whether the virtual reassembly queue has a hole. If yes, go to S619; otherwise, go to S613;
步骤 610至 612并无严格的先后顺序, 主要是为了判断是否已收到报文 的所有分片。  Steps 610 through 612 do not have a strict sequence, mainly to determine whether all fragments of the message have been received.
5613 , 判断是否存在分发表。 若存在, 则转入 S614; 否则, 转入 S615; 5613, to determine whether there is a sub-publication. If yes, go to S614; otherwise, go to S615;
5614 , 从首片中提取源地址、 目的地址、 源端口、 目的端口、 协议类型 等信息, 查找分发表, 得到目的线卡, 转入 S616 5614, extract the source address, destination address, source port, destination port, protocol type and other information from the first slice, find the sub-publish, get the destination line card, and transfer to S616.
5615 , 查找路由, 得到目的线卡;  5615, find the route, and get the destination line card;
5616,判断本线卡是否目的线卡, 若是, 则转入 S617; 否则,转入 S618; 5616, determine whether the line card is the destination line card, and if yes, go to S617; otherwise, go to S618;
5617 , 文重组成功, 上送本线卡业务处理, 流程结束; 5617, the text is reorganized successfully, and the line card service is sent to the line, and the process ends;
执行 S617表示当前线卡既是集中重组模块所在的线卡, 也是目的线卡, 进行真实的 "^文重组。  Execution S617 indicates that the current line card is both the line card where the centralized reassembly module is located, and the destination line card, for real "^ text reorganization.
5618,将虚拟重组队列中所有分片报文分发到目的线卡处理, 流程结束; 执行 S618 标识当前线卡仅是集中重组模块所在的线卡, 而不是目的线 卡, 根据虚拟重组队列进实现虚拟重组, 发送到目的线卡, 再由目的线卡进 行真实报文重组。 5618: All the fragmented packets in the virtual reassembly queue are distributed to the destination line card for processing, and the process ends; executing S618 identifies that the current line card is only the line card where the centralized reassembly module is located, instead of the destination line. The card is virtual reorganized according to the virtual reassembly queue, sent to the destination line card, and then the real line message is reassembled by the destination line card.
S619, 判断定时器是否超时。 若是, 则转入 S620; 否则, 转入 S601 , 继 续接收报文分片;  S619. Determine whether the timer expires. If yes, go to S620; otherwise, go to S601 and continue to receive message fragments;
S620, 释放虚拟重组队列, 报文重组失败, 流程结束。  S620: The virtual reassembly queue is released, the packet reorganization fails, and the process ends.
以上流程是业务线卡的优选实施方式,执行 S602的判断, 可以对当前线 卡不是报文重组模块所在的线卡而是目的线卡的情形进行简化处理, 无需创 建虚拟重组队列。 可替换地, 可以不执行步骤 S602、 S603 , 接收分片报文后 直接执行步骤 604。  The above process is a preferred implementation manner of the service line card. When the S602 is judged, the current line card is not the line card where the message reassembly module is located but the destination line card is simplified, and the virtual reassembly queue does not need to be created. Alternatively, step S602 may be performed after receiving the fragmented message without performing steps S602 and S603.
根据以上流程, 对于业务线卡来说:  According to the above process, for the line card:
如果在重组超时时间内, 没有收齐所有分片 4艮文, 则释放虚拟重组队列 中的分片"¾文, 重组失败。  If all the shards are not collected within the reassembly timeout period, the shards in the virtual reassembly queue are released, and the reorganization fails.
如果在重组超时时间内, 收齐所有分片报文。从首片报文中提取源地址、 目的地址、 源端口、 目的端口、 协议类型等信息, 查分发表或根据报文目的 地址查路由,决定报文是本线卡进行业务处理或送到目的线卡进行业务处理。 若是本线卡进行业务处理, 则将虚拟重组队列中的报文重组成功; 否则, 将 虚拟重组队列中的各分片报文发送到目的线卡处理。  If all the fragmented messages are collected within the reassembly timeout period. Extract the information such as the source address, the destination address, the source port, the destination port, and the protocol type from the first packet, check the distribution or check the route according to the destination address of the packet, and determine whether the packet is the line card for service processing or delivery to the destination line. The card performs business processing. If the line card performs service processing, the packets in the virtual reassembly queue are successfully reassembled. Otherwise, each fragment packet in the virtual reassembly queue is sent to the destination line card for processing.
本发明仅在目的线卡实现真实的报文重组, 可避免二次重组, 节约系统 资源, 提升系统性能。  The invention only realizes real message reorganization in the destination line card, can avoid secondary reorganization, save system resources, and improve system performance.
本发明在当前线卡不是目的线卡的情况下, 釆用虚拟重组队列, 可将对 某个报文的虚拟重组队列中的报文分片集中转发, 使得不同报文的报文分片 相对独立于其他报文的报文分片, 报文之间有一定的隔离作用, 避免上层业 务接收到的报文乱序。  In the case that the current line card is not the destination line card, the virtual reassembly queue can be used to forward the packets in the virtual reassembly queue of a certain packet in a centralized manner, so that the packets of different packets are relatively fragmented. Packets that are independent of other packets are fragmented. The packets are isolated from each other to prevent the packets received from the upper-layer services from being out of order.
对于图 2所示的情形, 如果接口线卡、 作为目的线卡的业务线卡和 >¾文 重组模块所在的线卡为不同的线卡, 则其报文传输路径入如图 7所示, 报文 1的分片 1和分片 2在接口线卡 1上经过虚拟重组队列的虚拟重组后,不经过 集中重组模块所在的线卡, 而是走路径 1直接发送到业务线卡上, 和小包报 文 2的传输路径相同, 从而避免报文 1和报文 2之间的乱序。 为了实现以上方法, 本发明还提供了一种线卡, 如图 8所示, 所述线卡 包括: For the situation shown in Figure 2, if the interface line card, the service line card as the destination line card, and the line card where the >3⁄4 text reassembly module is located are different line cards, the message transmission path is as shown in Figure 7. After the virtual reassembly of the virtual reassembly queue on the interface line card 1 is performed, the fragment 1 and the fragment 2 of the packet 1 are sent to the service line card without going through the line card where the centralized reassembly module is located, and The transmission path of the packet 2 is the same, thereby avoiding the disorder between the message 1 and the message 2. In order to implement the above method, the present invention further provides a line card. As shown in FIG. 8, the line card includes:
接收模块 80 , 其设置为接收报文分片;  a receiving module 80, configured to receive a message fragment;
目的线卡判断模块 81 , 其设置为: 在接收到报文的所有分片时, 判断本 线卡是否是目的线卡;  The destination line card judging module 81 is configured to: determine whether the line card is a destination line card when receiving all the fragments of the message;
转发模块 82, 其设置为: 在接收到报文的所有分片且本线卡不是目的线 卡时, 将所述报文的所有分片发送给目的线卡;  The forwarding module 82 is configured to: when all the fragments of the packet are received and the local line card is not the destination line card, send all the fragments of the packet to the destination line card;
报文重组模块 83 , 其设置为: 在接收到报文的所有分片且本线卡是目的 线卡时, 将所述 文的所有分片进行重组。  The message reassembly module 83 is configured to: when all the fragments of the message are received and the line card is the destination line card, all the fragments of the text are reorganized.
较佳地, 所述接收模块 80包括:  Preferably, the receiving module 80 includes:
接收子模块 801 , 其设置为接收报文分片;  a receiving submodule 801, configured to receive a message fragment;
虚拟重组队列管理子模块 802, 其设置为: 接收所述报文的第一个分片 时, 创建一个虚拟重组队列; 以及在接收所述报文的后续分片时, 按分片在 原始 文中的位置写入所述虚拟重组队列中;  a virtual reassembly queue management sub-module 802, configured to: when receiving the first fragment of the packet, create a virtual reassembly queue; and when receiving the subsequent fragment of the packet, according to the fragment in the original text The location is written into the virtual reassembly queue;
分片判断子模块 803 , 其设置为根据所述虚拟重组队列的写入情况判断 是否接收到报文的所有分片。  The fragmentation determining sub-module 803 is configured to determine whether all fragments of the message are received according to the writing condition of the virtual reassembly queue.
较佳地, 所述虚拟重组队列管理子模块 802, 还设置为在创建所述虚拟 重组队列时, 初始化定时器, 所述线卡为接口线卡时, 还包括集中重组模块 线卡判断模块(未图示) , 其设置为: 在定时时间内未接收到报文的所有分 片时, 确定本线卡是否集中重组模块所在的线卡; 所述转发模块 82, 还设置 为在所述集中重组模块所在的线卡是本线卡时, 丟弃已接收的报文分片, 在 所述集中重组模块所在的线卡不是本线卡时, 将已接收的报文分片发送到集 中重组模块所在的线卡。  Preferably, the virtual reassembly queue management sub-module 802 is further configured to initialize a timer when the virtual reassembly queue is created, and when the line card is an interface line card, further include a centralized reassembly module line card judging module ( If not shown in the figure, it is set as follows: When all the fragments of the packet are not received within the time limit, it is determined whether the line card is centralized or not, and the forwarding module 82 is further set in the centralized When the line card where the reassembly module is located is the line card, the received packet fragments are discarded. When the line card where the centralized reassembly module is located is not the line card, the received message fragments are sent to the centralized reassembly. The line card where the module is located.
较佳地, 所述虚拟重组队列管理子模块 802, 还设置为在创建所述虚拟 重组队列时, 初始化定时器, 所述线卡为业务线卡时, 所述转发模块 82还设 置为在定时时间内未接收到报文的所有分片时, 丟弃已接收的报文分片。  Preferably, the virtual reassembly queue management sub-module 802 is further configured to: when the virtual re-queue queue is created, the timer is initialized, and when the line card is a service line card, the forwarding module 82 is further set to be in timing. When all the fragments of the packet are not received within the time, the received packet fragment is discarded.
所述目的线卡判断模块 81 , 是设置为通过查询分发表或路由确定本线卡 是否为目的业务线卡。 The destination line card judging module 81 is configured to determine the line card by querying a sub-publishing or routing. Whether it is the destination line card.
对应于图 6的流程,所述线卡为业务线卡时,所述目的线卡判断模块 81 , 是设置为: 在接收到报文分片时, 通过判断本线卡是否为集中重组模块所在 的线卡来确定本线卡是否是目的线卡, 若不是集中重组模块所在的线卡, 则 本线卡为目的线卡; 通过判断集中重组模块所在的线卡的方式确定本线卡为 目的线卡时,所述报文重组模块 83是设置为根据接收的报文分片直接进行报 文重组, 包括, 若在定时时间内收到所有 文分片则重组成功, 否则重组失 败, 丟弃收到的报文分片。  Corresponding to the flow of FIG. 6 , when the line card is a service line card, the destination line card determining module 81 is configured to: when receiving the message fragment, determine whether the line card is a centralized reassembly module. The line card determines whether the line card is the destination line card. If it is not the line card where the centralized reassembly module is located, the line card is the destination line card. The line card is determined by determining the line card where the centralized reassembly module is located. In the case of the line card, the message reassembly module 83 is configured to directly perform message reassembly according to the received message fragmentation, including: if all the fragmentation is received within the time limit, the reorganization is successful, otherwise the reorganization fails and is discarded. The received message is fragmented.
为了实现以上方法, 本发明还提供了一种分布式系统, 包括多个如上所 述的线卡。  In order to implement the above method, the present invention also provides a distributed system comprising a plurality of line cards as described above.
本发明方法、装置和系统使得分片报文只有到达上层业务处理的线卡(即 目的线卡)上才进行真实重组, 否则只做虚拟重组, 避免了传统实现将分片 报文送到集中重组模块所在线卡进行真实重组再分发所带来的弊端, 如集中 重组模块易成为系统瓶颈, 重组后报文在线卡间转发可能导致二次分片和重 组, 以及报文乱序等问题。 传统的电信领域实现是一股脑将分片报文送到集 中重组模块所在线卡处理, 本发明可以为了避免单板负荷过重, 影响业务运 行, 提高效率重组性能。 避免了报文重组后在线卡间转发导致不必要的重分 片、 再重组所带来的性能消耗, 提高了报文处理的效率。 同时, 当分片报文 和非分片报文没有交叉传输并且由同一个接口线卡收到时, 因为报文无需送 到集中重组模块所在线卡重组, 从而能够实现报文的保序。 可以通过后台配 置, 启用或禁止系统的虚拟重组功能。 此外, 本发明在多个接口线卡或业务 线卡上驻留集中重组模块, 实现了虚拟重组在集中重组模块所在线卡上的负 载均衡。  The method, the device and the system of the present invention enable the fragmented message to be reorganized only on the line card (ie, the destination line card) that is processed by the upper layer service. Otherwise, only the virtual reorganization is performed, thereby avoiding the traditional implementation of sending the fragmented message to the centralized device. The drawbacks caused by the real reorganization and redistribution of the online card of the reorganization module, such as the centralized reorganization module, are easy to become the system bottleneck. The retransmission of the message between the online cards may lead to secondary fragmentation and reorganization, as well as packet disorder. The traditional telecom field implementation is a brain that sends fragmented packets to the centralized card processing of the centralized reassembly module. The present invention can improve the performance of the reorganization performance in order to avoid excessive load on the board and affect business operations. It avoids the performance loss caused by unnecessary re-segmentation and re-reorganization after the message is reorganized, and improves the efficiency of message processing. At the same time, when the fragmented message and the non-fragmented message are not cross-transmitted and received by the same interface line card, the message can be saved because the message does not need to be sent to the centralized reassembly module to reorganize the online card. The system's virtual reorganization can be enabled or disabled through background configuration. In addition, the present invention resides on a plurality of interface line cards or service line cards to reside in a centralized reassembly module, thereby realizing the load balancing of the virtual reorganization on the online card of the centralized reassembly module.
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。  The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。 One of ordinary skill in the art can understand that all or part of the above steps can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium, such as read only. Memory, disk or disc, etc. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, or may be implemented in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
工业实用性 Industrial applicability
本发明中, 线卡判断是否已接收全报文的分片, 并在接收齐全时转发给 目的线卡, 由目的线卡实现报文重组, 从而避免报文分片的多次转发和重组, 节约系统资源。  In the present invention, the line card determines whether the fragmentation of the full message has been received, and forwards the packet to the destination line card when the reception is complete, and the destination line card reconciles the message, thereby avoiding multiple forwarding and reassembly of the packet fragmentation. Save system resources.

Claims

权 利 要 求 书 Claim
1、 一种 IP · ^艮文分片的处理方法, 该方法包括: 1. A method for processing IP 艮 分 分 , , , , , ,
线卡接收报文分片;  The line card receives the packet fragmentation;
所述线卡接收到报文的所有分片时, 判断本线卡是否是目的线卡; 本线卡是目的线卡时, 所述线卡将所述报文的所有分片进行重组。  When the line card receives all the fragments of the message, it determines whether the line card is a destination line card; when the line card is the destination line card, the line card reorganizes all the fragments of the message.
2、如权利要求 1所述的方法,其中,所述线卡接收报文分片的步骤包括: 接收所述报文的第一个分片时, 创建一个虚拟重组队列; The method of claim 1, wherein the step of the line card receiving the message fragmentation comprises: when receiving the first fragment of the message, creating a virtual reassembly queue;
接收所述报文的后续分片时, 按分片在原始报文中的位置写入所述虚拟 重组队列中;  When receiving the subsequent fragment of the packet, the fragment is written into the virtual reassembly queue at the location in the original packet;
根据虚拟重组队列的写入情况判断是否接收到报文的所有分片。  Determine whether all fragments of the packet are received according to the write status of the virtual reassembly queue.
3、如权利要求 2所述的方法,该方法还包括:创建所述虚拟重组队列时, 初始化定时器, 若所述线卡为接口线卡, 且在定时时间内未接收到报文的所 有分片时, 执行以下操作: 3. The method of claim 2, further comprising: initializing a timer when the virtual reassembly queue is created, if the line card is an interface line card, and not receiving all of the messages within a time limit When sharding, do the following:
所述接口线卡确定集中重组模块所在的线卡;  The interface line card determines a line card where the centralized reassembly module is located;
若所述集中重组模块所在的线卡是本线卡, 则丟弃已接收的报文分片, 若所述集中重组模块所在的线卡不是本线卡, 则所述接口线卡将已接收的报 文分片发送到集中重组模块所在的线卡。  If the line card where the centralized reassembly module is located is the local line card, the received message fragment is discarded. If the line card where the centralized reassembly module is located is not the local line card, the interface line card will be received. The message fragment is sent to the line card where the centralized reassembly module is located.
4、如权利要求 2所述的方法,该方法还包括:创建所述虚拟重组队列时, 初始化定时器, 若所述线卡为业务线卡, 且在定时时间内未接收到报文的所 有分片时, 丟弃已接收的报文分片。 The method of claim 2, further comprising: initializing a timer when the virtual reassembly queue is created, if the line card is a service line card, and not receiving all the packets within the time limit When fragmentation, discard the received message fragments.
5、 如权利要求 1所述的方法, 其中, 所述判断本线卡是否是目的线卡的 步骤包括: 所述线卡通过查询分发表或路由确定本线卡是否为目的线卡。 The method of claim 1, wherein the step of determining whether the line card is a destination line card comprises: determining, by the line card, whether the line card is a destination line card by querying a distribution or routing.
6、 如权利要求 1所述的方法, 其中, 所述线卡为业务线卡时, 所述判断 本线卡是否是目的线卡的步骤包括: 通过判断本线卡是否为集中重组模块所 在的线卡, 来确定本线卡是否是目的线卡, 若不是集中重组模块所在的线卡, 则本线卡为目的线卡; 通过判断集中重组模块所在的线卡的方式, 确定本线卡为目的线卡时, 所述业务线卡根据接收的报文分片直接进行报文重组。 The method of claim 1, wherein, when the line card is a service line card, the step of determining whether the line card is a destination line card comprises: determining whether the line card is a centralized reassembly module In the line card, to determine whether the line card is the destination line card, if it is not the line card where the centralized reassembly module is located, the line card is the destination line card; determine the line by judging the way of the line card where the centralized reorganization module is located When the card is the destination line card, the service line card directly performs message reassembly according to the received message fragment.
7、 如权利要求 1所述的方法, 所述方法还包括: 若当前接收的报文分片 与已接收的报文分片重复或重叠, 则丟弃所述当前接收的报文分片。 The method of claim 1, the method further comprising: discarding the currently received packet fragment if the currently received packet fragment overlaps or overlaps with the received packet fragment.
8、 一种线卡, 所述线卡包括: 8. A line card, the line card comprising:
接收模块, 其设置为: 接收报文分片;  a receiving module, configured to: receive a message fragment;
目的线卡判断模块, 其设置为: 在接收到报文的所有分片时, 判断本线 卡是否是目的线卡;  The destination line card judging module is configured to: determine whether the line card is a destination line card when receiving all the fragments of the message;
转发模块, 其设置为: 在接收到报文的所有分片且本线卡不是目的线卡 时, 将所述报文的所有分片发送给目的线卡; 以及  a forwarding module, configured to: when receiving all the fragments of the packet and the local line card is not the destination line card, send all the fragments of the packet to the destination line card;
报文重组模块, 其设置为: 接收到报文的所有分片且本线卡是目的线卡 时, 将所述 文的所有分片进行重组。  The message reassembly module is configured to: when all the fragments of the message are received and the line card is the destination line card, all the fragments of the text are reorganized.
9、 如权利要求 8所述的线卡, 其中, 所述接收模块包括: 9. The line card of claim 8, wherein the receiving module comprises:
接收子模块, 其设置为: 接收报文分片;  a receiving submodule, which is configured to: receive a message fragment;
虚拟重组队列管理子模块, 其设置为: 接收所述报文的第一个分片时, 创建一个虚拟重组队列; 以及在接收所述报文的后续分片时, 按分片在原始 文中的位置写入所述虚拟重组队列中; 以及  a virtual reassembly queue management sub-module, configured to: when receiving the first fragment of the packet, create a virtual reassembly queue; and when receiving the subsequent fragmentation of the packet, according to the location of the fragment in the original text Written into the virtual reassembly queue;
分片判断子模块, 其设置为: 根据所述虚拟重组队列的写入情况判断是 否接收到报文的所有分片。  The fragmentation determination sub-module is configured to: determine whether all fragments of the message are received according to the write status of the virtual reassembly queue.
10、 如权利要求 8所述的线卡, 其中, 所述虚拟重组队列管理子模块还 设置为: 在创建所述虚拟重组队列时, 初始化定时器; 10. The line card of claim 8, wherein the virtual reassembly queue management sub-module is further configured to: initialize a timer when the virtual reassembly queue is created;
所述线卡为接口线卡时, 所述线卡还包括集中重组模块线卡判断模块, 其设置为: 在定时时间内未接收到报文的所有分片时, 确定本线卡是否集中 重组模块所在的线卡; 所述转发模块还设置为: 在所述集中重组模块所在的 线卡是本线卡时, 丟弃已接收的报文分片, 在所述集中重组模块所在的线卡 不是本线卡时, 将已接收的报文分片发送到集中重组模块所在的线卡。 When the line card is an interface line card, the line card further includes a centralized reassembly module line card judging module, which is configured to: determine whether the line card is reorganized or not when all the fragments of the message are not received within the time limit. The line card where the module is located; the forwarding module is further configured to: where the centralized reassembly module is located When the line card is the line card, the received message fragment is discarded. When the line card where the centralized reassembly module is located is not the line card, the received message fragment is sent to the line where the centralized reassembly module is located. card.
11、 如权利要求 8所述的线卡, 其中, 所述虚拟重组队列管理子模块还 设置为: 在创建所述虚拟重组队列时, 初始化定时器; 所述线卡为业务线卡 时, 所述转发模块还设置为: 在定时时间内未接收到报文的所有分片时, 丟 弃已接收的报文分片。 The line card according to claim 8, wherein the virtual reassembly queue management sub-module is further configured to: when the virtual re-queue queue is created, initialize a timer; when the line card is a service line card, The forwarding module is further configured to: when all the fragments of the packet are not received within the timeout period, discard the received packet fragment.
12、 如权利要求 8所述的线卡, 其中, 所述目的线卡判断模块是设置为 通过查询分发表或路由确定本线卡是否为目的线卡。 The line card according to claim 8, wherein the destination line card judging module is configured to determine whether the line card is a destination line card by querying a sub-publishing or routing.
13、 如权利要求 8所述的线卡, 其中, 所述线卡为业务线卡时, 所述目 的线卡判断模块是设置为: 在接收到报文分片时, 通过判断本线卡是否为集 中重组模块所在的线卡来确定本线卡是否是目的线卡, 若不是集中重组模块 所在的线卡, 则本线卡为目的线卡; 所述报文重组模块是设置为根据接收的 报文分片直接进行报文重组。 The line card according to claim 8, wherein, when the line card is a service line card, the destination line card determining module is configured to: when receiving the message fragment, determine whether the line card is To determine whether the line card is the destination line card for the line card where the reassembly module is located, if the line card is not the centralized reassembly module, the line card is the destination line card; the message reassembly module is set to receive according to the The message fragmentation directly performs message reorganization.
14、一种分布式系统,包括多个如权利要求 8-13中任意一项所述的线卡。 A distributed system comprising a plurality of line cards as claimed in any one of claims 8-13.
PCT/CN2011/075923 2010-12-22 2011-06-20 Method and distributed system for processing internet protocol packet fragments WO2012083654A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010601200.4 2010-12-22
CN201010601200.4A CN102065012B (en) 2010-12-22 2010-12-22 Distributed system and method for processing IP message fragments

Publications (1)

Publication Number Publication Date
WO2012083654A1 true WO2012083654A1 (en) 2012-06-28

Family

ID=44000118

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/075923 WO2012083654A1 (en) 2010-12-22 2011-06-20 Method and distributed system for processing internet protocol packet fragments

Country Status (2)

Country Link
CN (1) CN102065012B (en)
WO (1) WO2012083654A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337888A (en) * 2015-11-18 2016-02-17 华为技术有限公司 Multinuclear forwarding-based load balancing method and device, and virtual switch
CN113691469A (en) * 2021-07-27 2021-11-23 新华三技术有限公司合肥分公司 Message out-of-order rearrangement method and single board

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065012B (en) * 2010-12-22 2015-04-01 中兴通讯股份有限公司 Distributed system and method for processing IP message fragments
CN102256182A (en) * 2011-07-26 2011-11-23 重庆大唐科技股份有限公司 RTP (Real-time Transport Protocol)-based video stream fragment framing method
CN103458039B (en) * 2013-09-06 2017-01-18 北京经纬恒润科技有限公司 Message generation method, mobile terminal, communication server and message generation system
CN112087394A (en) 2017-02-17 2020-12-15 华为技术有限公司 Message processing method and device
CN111953620B (en) * 2020-08-21 2023-01-10 锐捷网络股份有限公司 Method and device for reorganizing fragmented messages

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004107800A1 (en) * 2003-05-29 2004-12-09 Endace Technology Limited A method of recombining data units
CN101035082A (en) * 2007-04-28 2007-09-12 杭州华三通信技术有限公司 Unpacked message recombining method and interface board
US7424014B2 (en) * 2002-11-12 2008-09-09 Cisco Technology, Inc. System and method for local packet transport services within distributed routers
CN101447930A (en) * 2008-12-25 2009-06-03 华为技术有限公司 Message processing method and device thereof
CN102065012A (en) * 2010-12-22 2011-05-18 中兴通讯股份有限公司 Distributed system and method for processing IP message fragments

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7424014B2 (en) * 2002-11-12 2008-09-09 Cisco Technology, Inc. System and method for local packet transport services within distributed routers
WO2004107800A1 (en) * 2003-05-29 2004-12-09 Endace Technology Limited A method of recombining data units
CN101035082A (en) * 2007-04-28 2007-09-12 杭州华三通信技术有限公司 Unpacked message recombining method and interface board
CN101447930A (en) * 2008-12-25 2009-06-03 华为技术有限公司 Message processing method and device thereof
CN102065012A (en) * 2010-12-22 2011-05-18 中兴通讯股份有限公司 Distributed system and method for processing IP message fragments

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337888A (en) * 2015-11-18 2016-02-17 华为技术有限公司 Multinuclear forwarding-based load balancing method and device, and virtual switch
CN105337888B (en) * 2015-11-18 2018-12-07 华为技术有限公司 Load-balancing method, device and virtual switch based on multicore forwarding
CN113691469A (en) * 2021-07-27 2021-11-23 新华三技术有限公司合肥分公司 Message out-of-order rearrangement method and single board
CN113691469B (en) * 2021-07-27 2023-12-26 新华三技术有限公司合肥分公司 Message disorder rearrangement method and single board

Also Published As

Publication number Publication date
CN102065012A (en) 2011-05-18
CN102065012B (en) 2015-04-01

Similar Documents

Publication Publication Date Title
US9380134B2 (en) RoCE packet sequence acceleration
JP4807861B2 (en) Host Ethernet adapter for networking offload in server environments
WO2012083654A1 (en) Method and distributed system for processing internet protocol packet fragments
CN101494605B (en) Data forwarding method and apparatus based on Ethernet drive
US20150085661A1 (en) Stateless Fibre Channel Sequence Acceleration for Fibre Channel Traffic Over Ethernet
KR20190112804A (en) Packet processing method and apparatus
WO2018121535A1 (en) Load balance processing method and apparatus
WO2019127134A1 (en) Data transmission method and virtual switch
CN114422432A (en) Reliable coverage based on reliable transport layer
WO2019001484A1 (en) Method, apparatus and system for adjusting rate of sending side
US20170111294A1 (en) Integrated folded clos architecture
WO2017114378A1 (en) Forwarding of ip data packet
CN112311448B (en) Satellite network acceleration system based on virtual machine
WO2024037366A1 (en) Forwarding rule issuing method, and intelligent network interface card and storage medium
US11201825B2 (en) Transfer device and transfer method
JP6839113B2 (en) Transfer device and transfer method
WO2007118594A1 (en) Method for aggregating a plurality of data packets into a unified transport data packet and machine for performing said method
TW200400726A (en) A method and apparatus for sharing connection state information between multiple processing elements
Chimata Path of a packet in the linux kernel stack
EP2697950B1 (en) Technique for managing communications at a router
KR100670817B1 (en) Method and apparatus for implementation ipsec engine in ixdp2851
WO2023122995A1 (en) Packet transmission method and device
WO2012010007A1 (en) Method and apparatus for controlling cell switch

Legal Events

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

Ref document number: 11850594

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11850594

Country of ref document: EP

Kind code of ref document: A1