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

A kind of message forwarding method and device Download PDF

Info

Publication number
CN107888710A
CN107888710A CN201711431848.XA CN201711431848A CN107888710A CN 107888710 A CN107888710 A CN 107888710A CN 201711431848 A CN201711431848 A CN 201711431848A CN 107888710 A CN107888710 A CN 107888710A
Authority
CN
China
Prior art keywords
cpu
message
fragment message
fragment
data packets
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.)
Pending
Application number
CN201711431848.XA
Other languages
Chinese (zh)
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.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security 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 New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN201711431848.XA priority Critical patent/CN107888710A/en
Publication of CN107888710A publication Critical patent/CN107888710A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

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

Abstract

The embodiment of the present application provides a kind of message forwarding method and device, and applied to the first CPU of the network equipment, method includes:Obtain fragment message corresponding to raw data packets;The corresponding relation identified according to pre-recorded message information and CPU, determine that target CPU corresponding to the message information of fragment message is identified;If target CPU identifies the 2nd CPU of map network equipment, fragment message is given to the 2nd CPU;If corresponding first CPU of target CPU marks, fragment message is forwarded.The technical scheme provided using the embodiment of the present application, the valley-fill forwarding fragment message of order-preserving is ensure that, reduce the internal memory of consumption.

Description

A kind of message forwarding method and device
Technical field
The application is related to communication technical field, more particularly to a kind of message forwarding method and device.
Background technology
If in network raw data packets exceeded MTU that link can be supported (Maximum Transmission Unit, MTU), raw data packets can be split as to multiple fragment packets, burst number is distributed for each fragment packets, by one point Piece bag, current slice number and next burst number are encapsulated in a message, hereinafter referred to as fragment message, wherein, current slice number For the burst number of the fragment packets, next burst number is the burst number of the adjacent next fragment packets of the fragment packets, each fragment message Purpose equipment can be independently forwarded to.
Business based on content is concerned about the context relation of data in fragment message, such as including video data, audio number According to fragment message, this requires the valley-fill of order-preserving to forward fragment message, i.e., in two fragment messages of adjacent forwarding, previous point Next burst number that piece message includes, include current slice number for latter fragment message.
At present, in order to realize that the valley-fill of order-preserving forwards fragment message, mainly realized using IP fragmentation and reassembly technology, specifically For:The fragment message received is cached, the current slice number included according to fragment message and next burst number are to fragment message After restructuring, then the fragment message valley-fill after restructuring forwarded.
In above-mentioned message forwarding, intermediate equipment needs to cache a large amount of fragment messages, consumes the internal memory of equipment;In addition, one A buffer corresponding to individual CPU (Central Processing Unit, CPU), CPU corresponding to it to caching Forwarded after the fragment message restructuring cached in device, if intermediate equipment includes multiple CPU, a raw data packets, which are split, to be obtained Fragment message may transfer to this multiple CPU while handle, and between different CPU independently of each other, this causes each CPU can not be complete Into burst Packet reassembling, and then it cannot be guaranteed the valley-fill forwarding fragment message of order-preserving.
The content of the invention
The purpose of the embodiment of the present application is to provide a kind of message forwarding method and device, to ensure that the valley-fill of order-preserving forwards Fragment message, reduce the internal memory of consumption.Concrete technical scheme is as follows:
On the one hand, the embodiment of the present application discloses a kind of message forwarding method, applied to the first CPU of the network equipment, institute The method of stating includes:
Obtain fragment message corresponding to raw data packets;
The corresponding relation identified according to pre-recorded message information and CPU, determine the message information of the fragment message Corresponding target CPU marks;
If the 2nd CPU of the corresponding network equipment of target CPU mark, the fragment message is given to described the Two CPU;
If corresponding first CPU of target CPU marks, the fragment message is forwarded.
Two aspects, the embodiment of the present application discloses a kind of apparatus for forwarding message, applied to the first CPU of the network equipment, institute Stating device includes:
Acquiring unit, for obtaining fragment message corresponding to raw data packets;
Determining unit, for the corresponding relation identified according to pre-recorded message information and CPU, determine the burst report Target CPU marks corresponding to the message information of text;
Adapter unit, if the 2nd CPU for the corresponding network equipment of target CPU marks, by the burst Message is given to the 2nd CPU;
Retransmission unit, if for the first CPU, the fragment message is forwarded.
In the embodiment of the present application, pre-recorded message information and the corresponding relation of CPU marks, network are set in the network equipment After the first standby CPU gets fragment message, according to pre-recorded message information and the corresponding relation of CPU marks, it is determined that place Manage the CPU of fragment message mark, however, it is determined that CPU corresponding first CPU of mark, then the first CPU be responsible for turning fragment message Send out, however, it is determined that CPU mark map network equipment the 2nd CPU, then the first CPU fragment message is given to the 2nd CPU, by 2nd CPU is responsible for forwarding fragment message.The message information that same raw data packets split to obtain fragment message is identical, i.e., In pre-recorded corresponding relation, a raw data packets split to obtain the corresponding CPU marks of message information of fragment message, protect Demonstrate,prove same raw data packets and split obtained fragment message by same CPU processing, ensure that the valley-fill forwarding burst of order-preserving Message, in addition, it is not necessary that caching fragment message, reduce the internal memory of consumption.Certainly, any product or method of the application is implemented It must be not necessarily required to reach all the above advantage simultaneously.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of application, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the first schematic flow sheet for the message forwarding method that the embodiment of the present application provides;
Fig. 2 is second of schematic flow sheet of the message forwarding method that the embodiment of the present application provides;
Fig. 3 is a kind of structural representation for the apparatus for forwarding message that the embodiment of the present application provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete Site preparation describes, it is clear that described embodiment is only some embodiments of the present application, rather than whole embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of the application protection.
If raw data packets have exceeded the MTU that link can be supported, raw data packets will be split as multiple fragment packets by bag, Burst number is distributed for each fragment packets, a fragment packets, current slice number and next burst number are encapsulated in a fragment message In, current slice number is the burst number of the fragment packets, and next burst number is the burst number of the adjacent next fragment packets of the fragment packets, Each fragment message can independently be forwarded to purpose equipment
At present, in message forwarding, the network equipment needs to cache a large amount of fragment messages to recombinate fragment message, guarantee order-preserving Valley-fill forwarding fragment message, consume the internal memory of the network equipment;However, if the network equipment includes multiple CPU, an original number The fragment message obtained is split according to bag may transfer to this multiple CPU while handle, and this causes each CPU to complete burst report Text restructuring, and then cannot be guaranteed the valley-fill forwarding fragment message of order-preserving.
In order to ensure that the valley-fill of order-preserving forwards fragment message, the internal memory of consumption is reduced, the embodiment of the present application provides one kind Message forwarding method and device.
The first schematic flow sheet of the message forwarding method provided with reference to figure 1, Fig. 1 for the embodiment of the present application, this method Any CPU applied to the network equipment.For purposes of illustration only, illustrated below by taking the first CPU of the network equipment as an example.Specifically , it should include applied to the first CPU of network equipment method:
Step 101:Obtain fragment message corresponding to raw data packets.
Here, fragment message corresponding to raw data packets is to include the message of fragment packets that raw data packets split to obtain.
The fragment message that first CPU is got can be what other network equipments were sent, and as present networks equipment is hard Part equipment is given to the first CPU's after receiving the fragment message that other network equipments are sent.The burst report that first CPU is got Text can also be that other CPU of present networks equipment are given to the first CPU's.
Step 102:The corresponding relation identified according to pre-recorded message information and CPU, determine the message of fragment message Target CPU corresponding to information is identified.
Above-mentioned message information can be five-tuple, such as source IP (Internet Protocol, procotol) address, source Mouth, purpose IP address, destination interface and host-host protocol number.Above-mentioned message information can be triple, such as source IP address, purpose IP Address and host-host protocol number.
The species for the information that message information includes is more, if directly determining that target CPU is identified with message information, inquiry is more Complexity, and the information stored is more, occupancy memory space is more, for example, corresponding 2 fragment messages of raw data packets 1, acquisition The five-tuple of this 2 fragment messages is respectively:
Source IP 1, source port 1, purpose IP1, destination interface 1, host-host protocol number 1;
Corresponding 2 fragment messages of raw data packets 2, the five-tuple of this 2 fragment messages of acquisition are respectively:
Source IP 1, source port 2, purpose IP2, destination interface 2, host-host protocol number 2;
If desired 2 fragment messages corresponding to 2 fragment messages corresponding to raw data packets 1, raw data packets 2 are handed over CPU1 processing is given, then it is corresponding with CPU1's to prestore source IP 1, source port 1, purpose IP1, destination interface 1, host-host protocol number 1 Relation;Source IP 1, source port 2, purpose IP2, destination interface 2, host-host protocol number 2 and CPU1 corresponding relation.
, can be according to default checking algorithm, the check value of the message information of calculating, together in one embodiment of the application The message information of fragment message is identical corresponding to one raw data packets, then the check value calculated is also certain identical, in addition, root The check value calculated according to the message information of fragment message corresponding to different raw data packets may also be identical.So prestore school Value is tested with the corresponding relation of CPU marks as message information and the corresponding relation of CPU marks, the first CPU is according to message information Check value come determine target CPU identify, reduce occupancy memory space;In addition, the first CPU determines target only in accordance with check value CPU is identified, and is determined that the information of target CPU marks institute foundation is single, is reduced the complexity of operation.
Still illustrated with above-mentioned example, the network equipment can according to default checking algorithm, calculate source IP 1, source port 1, Purpose IP1, destination interface 1, the check value of host-host protocol number 1, check value 1 is obtained, storage check value 1 is corresponding with CPU1 to close System, source IP 1, source port 2, purpose IP2, destination interface 2, the check value of host-host protocol number 2 are calculated, obtain check value 2, store school Test the corresponding relation of value 2 and CPU1.If check value 1 and check value 2 are identical, it is corresponding with CPU1 can only to store check value 1 Relation.
In the embodiment of the present application, checking algorithm can be CRC (Cyclic Redundancy Check, cyclic redundancy school Test), the check value being now calculated can be hash (Hash) value.Above-mentioned checking algorithm can also be other checking algorithms, The embodiment of the present application is without limiting.
In one embodiment of the application, the corresponding relation of pre-recorded message information and CPU marks can be to use What family was pre-configured with, or what the network equipment recorded when receiving first fragment message corresponding to raw data packets, tool Body can be:
If pre-recorded message information is with the corresponding relation of CPU marks, existing comprising the report for receiving fragment message The corresponding relation of literary information, perform step 103.
If in the corresponding relation of pre-recorded message information and CPU mark, in the absence of including received fragment message The corresponding relation of message information, and determine that received fragment message is first fragment message corresponding to raw data packets, then First CPU records receive the message information of fragment message and the corresponding relation of the first CPU mark, and the burst that will be received Message forwards.
If in the corresponding relation of pre-recorded message information and CPU mark, in the absence of including received fragment message The corresponding relation of message information, and determine that received fragment message is not first fragment message corresponding to raw data packets, Then the first CPU waits for a period of time, if in the network equipment or in the absence of the report for including received fragment message after a period of time The corresponding relation of literary information, then can determine and the reason such as unprovoked network causes the network equipment first to receive the latter burst report Text, the first CPU abandon received fragment message.
, can be according to the mark that first fragment message whether is carried in fragment message, to determine in the embodiment of the present application Whether the fragment message of reception is first fragment message;It can be come true according to the mark that raw data packets are carried in fragment message Fixed received fragment message is fragment message corresponding to which raw data packets.It can certainly be determined using other modes Whether the fragment message received is first fragment message, is fragment message corresponding to which raw data packets, and the application is implemented Example is to this without limiting.
In one embodiment of the application, in order to save cpu resource, when it is determined that fragment message comes from other network equipments When, that is, determine fragment message for present networks equipment hardware device be given to the first CPU when, the first CPU is according to pre-recorded Message information and the corresponding relation of CPU marks, determine that target CPU corresponding to the message information of fragment message is identified;If it is determined that point Other CPU of piece message from present networks equipment, that is, determine fragment message be other CPU be given to the first CPU when, can be true It is fixed:The corresponding relation identified according to pre-recorded message information and CPU, it is determined that corresponding to the message information of fragment message Target CPU is identified, it is not necessary to the corresponding relation identified further according to pre-recorded message information and CPU, determines the report of fragment message Target CPU corresponding to literary information is identified.
Step 103:If corresponding 2nd CPU of target CPU marks, the 2nd CPU is given to by fragment message.
So, the 2nd CPU cans are handled the fragment message, and the fragment message is forwarded.
Step 104:If corresponding first CPU of target CPU marks, fragment message is forwarded.
In the embodiment of the present application, the message information of fragment message is identical corresponding to a raw data packets, therefore an original Fragment message corresponding to beginning packet can hand to same CPU processing, and forward, and so, it is same avoid different CPU When the problem of handling fragment message corresponding to a raw data packets, ensure that to arrive first and first forward, ensure that order-preserving by Circulation hair fragment message.
The message information of fragment message is identical corresponding to one raw data packets, will hand to same CPU processing, it is not necessary to Forwarded again after caching restructuring fragment message, reduce the internal memory of consumption, and all fragment message caching weights need not be waited Forwarded again after component sheets message, a fragment message can be received and just handle and forward a fragment message, subtracted Wait delay is lacked.
In one embodiment of the application, before the first CPU forwards fragment message, the burst report can be first determined Whether text is first fragment message corresponding to raw data packets.If first fragment message, then the first CPU turns the fragment message Send out;If not first fragment message, then the first CPU determines whether the first CPU is upper one corresponding to forwarding raw data packets The CPU of individual fragment message;If the first CPU, then the first CPU forwards fragment message;If not the first CPU, then wait For a period of time.
It is not a upper fragment message corresponding to forwarding raw data packets that if the first CPU is also to determine after a period of time CPU, then it is considered that there is packet loss phenomenon, the first CPU deletes fragment message corresponding to the raw data packets of forwarding, Forwarding, the fragment message is meaningless, the fragment message can be abandoned, to save Internet resources.If is determined after a period of time One CPU is the CPU for forwarding a upper fragment message corresponding to raw data packets, then the first CPU forwards fragment message.
In the embodiment of the present application, for example, CPU0 is by after a fragment message 01 forwards corresponding to raw data packets 01, Record current slice number and the next burst number that the fragment message 01 includes;As the CPU0, to get raw data packets 01 right , can if the current slice number that the fragment message 02 includes is identical with the next burst number recorded during the fragment message 02 answered To determine CPUs of the CPU0 as the upper fragment message corresponding to forwarding raw data packets 01;If the fragment message 02 includes Current slice number and all next bursts number for having recorded it is different, then it is not to forward raw data packets that can determine the CPU0 The CPU of a upper fragment message corresponding to 01.
First CPU first can carry out safety detection to the fragment message, be examined in safety when fragment message is forwarded Survey again forwards the fragment message after passing through.
The application is illustrated with reference to flow chart shown in Fig. 2.Wherein, present networks equipment includes 2 CPU, respectively For CPU1 and CPU2, it is CRC32 to preset checking algorithm;
Step 201, CPU1 get fragment message 1 corresponding to the raw data packets 1 from other network equipments.
Step 202, CPU1 calculate the check value of the message information of fragment message 1 according to CRC32, obtain check value 1.
The corresponding relation that step 203, CPU1 identify according to pre-recorded check value and CPU, is searched corresponding to check value 1 CPU is identified.
If step 204, CPU1 do not find CPU corresponding to check value 1 and identified in step 203, and determine burst report Text 1 is first fragment message corresponding to raw data packets 1, then records the corresponding relation of check value 1 and CPU1 mark.
Step 205, CPU1 forward fragment message 1.
If step 206, CPU1 do not find CPU corresponding to check value 1 and identified in step 203, and determine burst report Text 1 is not first fragment message corresponding to raw data packets 1, then abandons fragment message 1.
In one embodiment of the application, CPU1 can also wait for a period of time, if not finding school after a period of time Test CPU corresponding to value 1 to identify, CPU1 abandons fragment message 1.
If step 207, CPU1 find CPU marks 01 corresponding to check value 1 in step 203, it is determined that being identified as CPU marks Know 01 CPU.
If step 208, CPU1 determine CPU in step 207, mark 01 is identical with CPU1 mark, and determines burst report Text 1 is first fragment message corresponding to raw data packets 1, and fragment message 1 is forwarded.
If step 209, CPU1 determine CPU in step 207, mark 01 is identical with CPU1 mark, and determines burst report Text 1 is not first fragment message corresponding to raw data packets 1, determines whether CPU1 is upper one corresponding to forwarding raw data packets 1 The CPU of individual fragment message.
If step 210, CPU1 determine that CPU1 is a upper burst report corresponding to forwarding raw data packets 1 in step 209 The CPU of text, then forward fragment message 1.
If step 211, CPU1 determine that CPU1 is not a upper burst corresponding to forwarding raw data packets 1 in step 209 The CPU of message, then abandon fragment message 1.
In one embodiment of the application, CPU1 can wait for a period of time, if CPU1 is not forwarding after a period of time The CPU of a upper fragment message corresponding to raw data packets 1, CPU1 abandon fragment message 1.
If step 212, CPU1 determine CPU in step 207, mark is 01 identical with CPU2 mark, by 1 turn of fragment message To CPU2.
Step 213, CPU2 are if it is determined that fragment message 1 is first fragment message corresponding to raw data packets 1, by fragment message 1 forwards.
Step 214, CPU2 determine CPU2 if it is determined that fragment message 1 is not first fragment message corresponding to raw data packets 1 Whether it is the CPU for forwarding a upper fragment message corresponding to raw data packets 1.
If step 215, CPU2 determine that CPU2 is a upper burst report corresponding to forwarding raw data packets 1 in step 214 The CPU of text, then forward fragment message 1.
If step 216, CPU2 determine that CPU2 is not a upper burst corresponding to forwarding raw data packets 1 in step 214 The CPU of message, then abandon fragment message 1.
In one embodiment of the application, CPU2 can wait for a period of time, if CPU2 is not forwarding after a period of time The CPU of a upper fragment message corresponding to raw data packets 1, CPU2 abandon fragment message 1.
Using the embodiment of the present application, pre-recorded message information and the corresponding relation of CPU marks, network in the network equipment After first CPU of equipment gets fragment message, according to pre-recorded message information and the corresponding relation of CPU marks, it is determined that Handle the CPU of fragment message mark, however, it is determined that CPU corresponding first CPU of mark, then the first CPU be responsible for fragment message Forward, however, it is determined that CPU mark map network equipment the 2nd CPU, then the first CPU fragment message is given to the 2nd CPU, It is responsible for forwarding fragment message by the 2nd CPU.The message information that same raw data packets split to obtain fragment message is identical, In i.e. pre-recorded corresponding relation, a raw data packets split to obtain the corresponding CPU marks of message information of fragment message, It ensure that same raw data packets split obtained fragment message by same CPU processing, ensure that the valley-fill forwarding point of order-preserving Piece message, in addition, it is not necessary that caching fragment message, reduce the internal memory of consumption.
Corresponding with message forwarding method embodiment, the embodiment of the present application additionally provides a kind of apparatus for forwarding message.Reference chart A kind of structural representation of 3, Fig. 3 apparatus for forwarding message provided for the embodiment of the present application, first applied to the network equipment CPU, the device include:
Acquiring unit 301, for obtaining fragment message corresponding to raw data packets;
Determining unit 302, for the corresponding relation identified according to pre-recorded message information and CPU, determine burst report Target CPU marks corresponding to the message information of text;
Adapter unit 303, if the 2nd CPU for target CPU mark map network equipment, fragment message is given to the Two CPU;
Retransmission unit 304, if identifying corresponding first CPU for target CPU, fragment message is forwarded.
In one embodiment of the application, determining unit 302, specifically it can be used for:
If fragment message comes from other network equipments, the corresponding relation that is identified according to pre-recorded message information and CPU, Determine that target CPU corresponding to the message information of fragment message is identified;
Retransmission unit 304 can be also used for:
If other CPU of fragment message from present networks equipment, fragment message is forwarded.
In one embodiment of the application, determining unit 302, specifically it can be used for:
According to default checking algorithm, the object identifier value of the message information of fragment message is calculated;
The corresponding relation identified according to the check value of pre-recorded message information and CPU, determine that object identifier value is corresponding Target CPU mark.
In one embodiment of the application, retransmission unit 304, specifically it can be used for:
If fragment message is first fragment message corresponding to raw data packets, fragment message is forwarded;
If fragment message is not first fragment message corresponding to raw data packets, determine whether the first CPU is that forwarding is original The CPU of a upper fragment message corresponding to packet;If it has, then fragment message is forwarded.
In one embodiment of the application, above-mentioned apparatus for forwarding message can also include:
Discarding unit, if for determining that the first CPU is not the forwarding original number after default waiting time time-out According to the CPU of a upper fragment message corresponding to bag, the fragment message is abandoned.
In one embodiment of the application, retransmission unit 304, it can be also used for:
If not determining, target CPU corresponding to the message information of fragment message is identified, and fragment message is raw data packets pair The first fragment message answered, then the message information of fragment message and the corresponding relation of the first CPU mark are recorded, and by burst report Text forwards.
Using the embodiment of the present application, pre-recorded message information and the corresponding relation of CPU marks, network in the network equipment After first CPU of equipment gets fragment message, according to pre-recorded message information and the corresponding relation of CPU marks, it is determined that Handle the CPU of fragment message mark, however, it is determined that CPU corresponding first CPU of mark, then the first CPU be responsible for fragment message Forward, however, it is determined that CPU mark map network equipment the 2nd CPU, then the first CPU fragment message is given to the 2nd CPU, It is responsible for forwarding fragment message by the 2nd CPU.The message information that same raw data packets split to obtain fragment message is identical, In i.e. pre-recorded corresponding relation, a raw data packets split to obtain the corresponding CPU marks of message information of fragment message, It ensure that same raw data packets split obtained fragment message by same CPU processing, ensure that the valley-fill forwarding point of order-preserving Piece message, in addition, it is not necessary that caching fragment message, reduce the internal memory of consumption.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element also be present in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Turn especially for message For transmitting apparatus embodiment, because it is substantially similar to message forwarding method embodiment, so description is fairly simple, correlation Place illustrates referring to the part of message forwarding method embodiment.
The preferred embodiment of the application is the foregoing is only, is not intended to limit the protection domain of the application.It is all Any modification, equivalent substitution and improvements made within spirit herein and principle etc., it is all contained in the protection domain of the application It is interior.

Claims (12)

1. a kind of message forwarding method, it is characterised in that applied to the first central processing unit CPU of the network equipment, the side Method includes:
Obtain fragment message corresponding to raw data packets;
The corresponding relation identified according to pre-recorded message information and CPU, determine that the message information of the fragment message is corresponding Target CPU mark;
If the 2nd CPU of the corresponding network equipment of target CPU marks, described second is given to by the fragment message CPU;
If corresponding first CPU of target CPU marks, the fragment message is forwarded.
2. according to the method for claim 1, it is characterised in that described to be identified according to pre-recorded message information and CPU Corresponding relation, determine corresponding to the message information of the fragment message the step of target CPU is identified, including:
If the fragment message comes from other network equipments, the corresponding relation that is identified according to pre-recorded message information and CPU, Determine that target CPU corresponding to the message information of the fragment message is identified;
Methods described also includes:
If other CPU of the fragment message from the network equipment, the fragment message is forwarded.
3. method according to claim 1 or 2, it is characterised in that described to be marked according to pre-recorded message information and CPU The corresponding relation of knowledge, the step of target CPU corresponding to the message information of the fragment message is identified is determined, including:
According to default checking algorithm, the object identifier value of the message information of the fragment message is calculated;
The corresponding relation identified according to the check value of pre-recorded message information and CPU, determine that the object identifier value is corresponding Target CPU mark.
4. method according to claim 1 or 2, it is characterised in that described the step of forwarding the fragment message, Including:
If the fragment message is first fragment message corresponding to the raw data packets, the fragment message is transferred Go;
If the fragment message is not first fragment message corresponding to the raw data packets, determine the first CPU whether be Forward the CPU of a upper fragment message corresponding to the raw data packets;If it has, then the fragment message is forwarded.
5. according to the method for claim 4, it is characterised in that methods described also includes:
If it is not to forward on corresponding to the raw data packets one point that the first CPU is determined after default waiting time time-out The CPU of piece message, abandon the fragment message.
6. according to the method for claim 1, it is characterised in that methods described also includes:
If not determining, target CPU corresponding to the message information of the fragment message is identified, and the fragment message is described original First fragment message corresponding to packet, then record the message information of the fragment message and pair of the mark of the first CPU It should be related to, and the fragment message is forwarded.
7. a kind of apparatus for forwarding message, it is characterised in that applied to the first central processing unit CPU of the network equipment, the dress Put including:
Acquiring unit, for obtaining fragment message corresponding to raw data packets;
Determining unit, for the corresponding relation identified according to pre-recorded message information and CPU, determine the fragment message Target CPU corresponding to message information is identified;
Adapter unit, if the 2nd CPU for the corresponding network equipment of target CPU marks, by the fragment message It is given to the 2nd CPU;
Retransmission unit, if for corresponding first CPU of target CPU marks, the fragment message is forwarded.
8. device according to claim 7, it is characterised in that the determining unit, be specifically used for:
If the fragment message comes from other network equipments, the corresponding relation that is identified according to pre-recorded message information and CPU, Determine that target CPU corresponding to the message information of the fragment message is identified;
The retransmission unit is additionally operable to:
If other CPU of the fragment message from the network equipment, the fragment message is forwarded.
9. the device according to claim 7 or 8, it is characterised in that the determining unit, be specifically used for:
According to default checking algorithm, the object identifier value of the message information of the fragment message is calculated;
The corresponding relation identified according to the check value of pre-recorded message information and CPU, determine that the object identifier value is corresponding Target CPU mark.
10. the device according to claim 7 or 8, it is characterised in that the retransmission unit, be specifically used for:
If the fragment message is first fragment message corresponding to the raw data packets, the fragment message is transferred Go;
If the fragment message is not first fragment message corresponding to the raw data packets, determine the first CPU whether be Forward the CPU of a upper fragment message corresponding to the raw data packets;If it has, then the fragment message is forwarded.
11. device according to claim 10, it is characterised in that described device also includes:
Discarding unit, if for determining that the first CPU is not the forwarding raw data packets after default waiting time time-out The CPU of a corresponding upper fragment message, abandons the fragment message.
12. device according to claim 7, it is characterised in that the retransmission unit, be additionally operable to:
If not determining, target CPU corresponding to the message information of the fragment message is identified, and the fragment message is described original First fragment message corresponding to packet, then record the message information of the fragment message and pair of the mark of the first CPU It should be related to, and the fragment message is forwarded.
CN201711431848.XA 2017-12-26 2017-12-26 A kind of message forwarding method and device Pending CN107888710A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711431848.XA CN107888710A (en) 2017-12-26 2017-12-26 A kind of message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711431848.XA CN107888710A (en) 2017-12-26 2017-12-26 A kind of message forwarding method and device

Publications (1)

Publication Number Publication Date
CN107888710A true CN107888710A (en) 2018-04-06

Family

ID=61772567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711431848.XA Pending CN107888710A (en) 2017-12-26 2017-12-26 A kind of message forwarding method and device

Country Status (1)

Country Link
CN (1) CN107888710A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109067935A (en) * 2018-08-16 2018-12-21 深圳市风云实业有限公司 Packet message processing method and multi-core processor system
CN110601990A (en) * 2019-10-30 2019-12-20 杭州迪普科技股份有限公司 Message distribution method and device
CN111786905A (en) * 2020-06-30 2020-10-16 北京天融信网络安全技术有限公司 Message reassembly method and apparatus, processor, storage medium, and network device
CN113711213A (en) * 2019-04-19 2021-11-26 日立安斯泰莫株式会社 Arithmetic device
CN116886652A (en) * 2023-09-06 2023-10-13 深圳华云信息系统科技股份有限公司 Method and device for reorganizing IP message fragments, electronic equipment and storage medium
CN119232668A (en) * 2024-11-28 2024-12-31 阿里云计算有限公司 Fragment message tuple recovery method, network card, gateway, storage medium and program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624611A (en) * 2011-12-31 2012-08-01 成都市华为赛门铁克科技有限公司 Message distribution method, device, processor and network equipment
US20160014152A1 (en) * 2012-01-26 2016-01-14 Mcafee, Inc. System and method for innovative management of transport layer security session tickets in a network environment
CN106034084A (en) * 2015-03-16 2016-10-19 华为技术有限公司 Data transmission method and apparatus thereof
CN107404446A (en) * 2016-05-19 2017-11-28 中兴通讯股份有限公司 A kind of method and device for handling fragment message
CN107508827A (en) * 2017-09-15 2017-12-22 通鼎互联信息股份有限公司 A kind of message parsing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624611A (en) * 2011-12-31 2012-08-01 成都市华为赛门铁克科技有限公司 Message distribution method, device, processor and network equipment
US20160014152A1 (en) * 2012-01-26 2016-01-14 Mcafee, Inc. System and method for innovative management of transport layer security session tickets in a network environment
CN106034084A (en) * 2015-03-16 2016-10-19 华为技术有限公司 Data transmission method and apparatus thereof
CN107404446A (en) * 2016-05-19 2017-11-28 中兴通讯股份有限公司 A kind of method and device for handling fragment message
CN107508827A (en) * 2017-09-15 2017-12-22 通鼎互联信息股份有限公司 A kind of message parsing method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109067935A (en) * 2018-08-16 2018-12-21 深圳市风云实业有限公司 Packet message processing method and multi-core processor system
CN113711213A (en) * 2019-04-19 2021-11-26 日立安斯泰莫株式会社 Arithmetic device
US20220215131A1 (en) * 2019-04-19 2022-07-07 Hitachi Astemo, Ltd. Arithmetic device
US12019787B2 (en) * 2019-04-19 2024-06-25 Hitachi Astemo, Ltd. Arithmetic device
CN110601990A (en) * 2019-10-30 2019-12-20 杭州迪普科技股份有限公司 Message distribution method and device
CN111786905A (en) * 2020-06-30 2020-10-16 北京天融信网络安全技术有限公司 Message reassembly method and apparatus, processor, storage medium, and network device
CN116886652A (en) * 2023-09-06 2023-10-13 深圳华云信息系统科技股份有限公司 Method and device for reorganizing IP message fragments, electronic equipment and storage medium
CN116886652B (en) * 2023-09-06 2023-11-07 深圳华云信息系统科技股份有限公司 Method and device for reorganizing IP message fragments, electronic equipment and storage medium
CN119232668A (en) * 2024-11-28 2024-12-31 阿里云计算有限公司 Fragment message tuple recovery method, network card, gateway, storage medium and program

Similar Documents

Publication Publication Date Title
CN107888710A (en) A kind of message forwarding method and device
EP3320670B1 (en) Method and apparatus for pushing data in a content-centric networking (ccn) network
US6714985B1 (en) Method and apparatus for efficiently reassembling fragments received at an intermediate station in a computer network
US7065086B2 (en) Method and system for efficient layer 3-layer 7 routing of internet protocol (“IP”) fragments
JP4230663B2 (en) Packet header reduction in wireless communication networks
CN103765832B (en) General dual-mode data Forwarding plane for information centre's network
CN103118013B (en) The method of packet incidentally reverse interest bag in content center network
CN103201989B (en) The methods, devices and systems of control data transmission
US9356844B2 (en) Efficient application recognition in network traffic
CN102624611B (en) Method, device, processor and network equipment for message dispersion
CN105939297B (en) A kind of TCP message recombination method and device
US10587515B2 (en) Stateless information centric forwarding using dynamic filters
JP2009510815A (en) Method and system for reassembling packets before search
KR20140030307A (en) A generalized dual-mode data forwarding plane for information-centric network
KR20170026541A (en) Methods and apparatus for optimizing tunneled traffic
JP2014505384A (en) Object-based transport protocol
JP2005117206A5 (en)
CN105704036A (en) Message forwarding method, apparatus, and system
CN106685862A (en) Fragmented data packet processing method and device
CN101616078A (en) A method for discovering the maximum transmission unit of a path, a router and a node device
US10057165B2 (en) Packet forwarding method and device
CN103581361A (en) Domain name resolution proxy method, device and system
CN115865816A (en) Network load balancing method and device
CN102938739B (en) Deep message detection method and apparatus
CN120263729A (en) Routing device message processing method, routing device, storage medium and chip system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180406

RJ01 Rejection of invention patent application after publication