CN106385418A - Method and device for transmitting private data - Google Patents
Method and device for transmitting private data Download PDFInfo
- Publication number
- CN106385418A CN106385418A CN201610837535.3A CN201610837535A CN106385418A CN 106385418 A CN106385418 A CN 106385418A CN 201610837535 A CN201610837535 A CN 201610837535A CN 106385418 A CN106385418 A CN 106385418A
- Authority
- CN
- China
- Prior art keywords
- message
- data
- private data
- data message
- member device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/30—Definitions, standards or architectural aspects of layered protocol stacks
Abstract
The present invention provides a method and device for transmitting private data. The method and device are applied to one member device of distributed equipment. The method includes the following steps that: a data message carrying private data, which is transmitted by another member device, is received, wherein the private data include data transmitted between the member devices of the distributed equipment; when the data message is sent to the upper layer protocol of a protocol stack so as to be processed, the deviation length of a tail pointer pointing to the message buffer of the data message is recorded; and the upper layer protocol completes processing the data message, the position of the tail pointer is reset to an initial position based on the recorded deviation length, and the data message is forwarded to the next member device, and therefore, the member device which receives the data message can obtain the private data carried in the data message. According to the embodiments of the invention, one member device of the distributed equipment can acquire the private data carried by the data message sent by the other member.
Description
Technical field
The application is related to communication technical field, particularly to a kind of method and device of transmission private data.
Background technology
Distributed apparatus, refer to be made up of multiple stage member device, each member device has independent CPU, can be independent
Carry out the network equipment that Business Processing and message forward.Wherein, can be interknited by network between member device.
In application scenes, between member device, typically require transmission private data, for Business Processing or control
Message processed forwards.Add private data typically by the afterbody in message buffer at present, by sender, private data is sealed
It is contained in the afterbody of message buffer, and the pointer pointing to message buffer afterbody is offset backward the length of private data, then
Forward the packet away.After recipient receives message, the pointer biased forwards private data of message buffer afterbody will be pointed to
Length, takes out private data from message buffer afterbody, then forwards the packet away.
However, in actual application, if there are other members between the sender of private data and recipient set
Standby, before being received by recipient, this private data may be by this other member device will be supreme for this message up sending for message
Layer protocol is processed, and is destroyed after the pointer of message buffer afterbody is adjusted, thus leading to the recipient cannot be just
Really obtain the private data of message buffer afterbody.
Content of the invention
In view of this, the application provides a kind of method and device of transmission private data, in order to solve in distributed apparatus
In, when there is other member device between the sender and recipient of private data, recipient cannot correctly obtain message and delay
Rush the problem of the private data of area's afterbody.
Specifically, the application is achieved by the following technical solution:
A kind of method of transmission private data, is applied on the member device of distributed apparatus, including:
Receive the data message carrying private data that other member devices send;Described private data is included described
The data of transmission between the member device of distributed apparatus;
When processing the upper-layer protocol delivering to protocol stack on described data message, record points to the report of described data message
The deflected length of the tail pointer of civilian buffering area;
Complete described data message when upper-layer protocol is processed, based on the described deflected length of record, by described tail pointer
Position is recovered to initial position, and by described data message forwarding to next member device so that receiving this data message
Member device obtains the described private data carrying in described data message.
In the method for described transmission private data, described member device is device for multi-core;Wherein, every CPU sets respectively
A fixed corresponding global variable;
Methods described also includes:
When arbitrary CPU receives the data message carrying private data, will be corresponding in CPU for described deflected length record
In global variable.
In the method for described transmission private data, also include:
User configured private data is encapsulated in the afterbody of described data message, and institute is changed according to private data length
State the position of the tail pointer in message buffer;
Described data message is sent to next member device.
In the method for described transmission private data, also include:
Receive that other member devices send carry private data data message when, based on pre-configured described privately owned
The length of data, reads described private data from the message tail of described data message.
In the method for described transmission private data, also include:
When described data message is produced described distributed apparatus, the message buffer of described data message is pointed in adjustment
The position of tail pointer, abandons described private data.
A kind of device of transmission private data, is applied on the member device of distributed apparatus, including:
Receiving unit, for receiving the data message carrying private data that other member devices send;Described privately owned
Data includes the data of transmission between the member device of described distributed apparatus;
Recording unit, for when processing the upper-layer protocol delivering to protocol stack on described data message, record points to institute
State the deflected length of the tail pointer of the message buffer of data message;
Recovery unit, for completing described data message when upper-layer protocol is processed, based on the described deflected length of record, will
The position of described tail pointer is recovered to initial position, and by described data message forwarding to next member device so that receiving
The member device of this data message obtains the described private data carrying in described data message.
In the device of described transmission private data, described member device is device for multi-core;Wherein, every CPU sets respectively
A fixed corresponding global variable;
Described recording unit, is further used for when arbitrary CPU receives the data message carrying private data, will be described
Deflected length record is in the corresponding global variable of CPU.
In the device of described transmission private data, also include:
Encapsulation unit, for being encapsulated in the afterbody of described data message, and according to privately owned by user configured private data
Data length changes the position of the tail pointer in described message buffer;
Transmitting element, for sending described data message to next member device.
In the device of described transmission private data, also include:
Reading unit, for receive that other member devices send carry private data data message when, based on pre-
The length of the described private data of configuration, reads described private data from the message tail of described data message.
In the device of described transmission private data, also include:
Discarding unit, during for described data message being produced described distributed apparatus, described data message is pointed in adjustment
The tail pointer of message buffer position, abandon described private data.
In the embodiment of the present application, carry the data message of private data in upper protocol stack of delivering to by what record received
When upper-layer protocol is processed, point to the deflected length of the tail pointer of message buffer, and complete described data in upper-layer protocol process
After message, the position of described tail pointer is recovered so that described data message is forwarded to down based on the described deflected length of record
During one member device, completely carry described private data;Thus solving in the distributed network Central Shanxi Plain, as the sender of private data
When there is other member device and recipient between, recipient cannot correctly obtain asking of the private data of message buffer afterbody
Topic.
Brief description
Fig. 1 is a kind of schematic diagram of the message buffer of data message shown in the application;
Fig. 2 is the flow chart of a kind of method of transmission private data shown in the application;
Fig. 3 is a kind of logic diagram of the device of transmission private data shown in the application;
Fig. 4 is a kind of hardware structure diagram of the device of transmission private data shown in the application.
Specific embodiment
In order that those skilled in the art more fully understand the technical scheme in the embodiment of the present invention, and make the present invention real
Apply the above-mentioned purpose of example, feature and advantage can become apparent from understandable, below in conjunction with the accompanying drawings to prior art and the present invention
Technical scheme in embodiment is described in further detail.
In the related, in application scenes, typically require transmission between the member device of distributed apparatus private
There is data, forward for Business Processing or control message.
For example, above-mentioned private data could be for the forwarding-table item of data forwarding between member device, or other
Need the data transmitted between member device.
At present, add private data typically by the afterbody in message buffer, by sender, private data is encapsulated
In the afterbody of message buffer, and the pointer pointing to message buffer afterbody is offset backward the length of private data, then will
Message forwards.After recipient receives message, the length of the pointer biased forwards private data of message buffer afterbody will be pointed to
Degree, takes out private data from message buffer afterbody, then forwards the packet away.
If however, there are other member devices between the recipient of private data and sender, data message is being connect
It will usually be forwarded by other member devices before debit's reception.Now, if this other member device needs the number receiving
According to message, above deliver to protocol stack upper-layer protocol carry out Business Processing (such as will the Layer 2 data that receive message continue on deliver to
Three layer protocols carry out corresponding Business Processing), due to being processed upper-layer protocol is delivered on data message, may be based on upper
The length of the message buffer to this data message for the layer protocol is adjusted, and therefore, above-mentioned private data may be due to message
The pointer of buffering area afterbody is destroyed after being adjusted.In this case, recipient according to default private data length from
The data of mistake when message buffer afterbody reads private data, may be obtained.
For example, refer to Fig. 1, be a kind of schematic diagram of the message buffer of data message shown in the application.Receive
The data message carrying private data message buffer from position A to position E.When this data message is above delivered to three layers of association
View when carrying out Business Processing, can peel off two layers of header first, and the pointer pointing to header moves to position B from position A, then further according to
The message length of record in the header of three layer protocols, the tail pointer pointing to message buffer end position is moved to position from position E
Put C.After the completion of the Business Processing of three layer protocols, this data message is forwarded to next member device.If this member device
Private data length length5 according to being pre-configured with reads forward private data from position C, will obtain the data of mistake.
For solving the above problems, the embodiment of the present application makes the message buffer afterbody of data message by series of measures
When member device between sender and recipient for the private data forwards, will not be destroyed.Below to the technology in the application
Scheme illustrates.
Referring to Fig. 2, it is the flow chart of a kind of method of transmission private data shown in the application, the execution master of this embodiment
Body is the member device of distributed apparatus;The method comprising the steps of:
Step 201:Receive the data message carrying private data that other member devices send;Described private data bag
Include the data of transmission between the member device of described distributed apparatus.
Step 202:When processing the upper-layer protocol delivering to protocol stack on described data message, record points to described data
The deflected length of the tail pointer of the message buffer of message.
Step 203:Complete described data message when upper-layer protocol is processed, based on the described deflected length of record, will be described
The position of tail pointer is recovered to initial position, and by described data message forwarding to next member device so that receiving this number
Member device according to message obtains the described private data carrying in described data message.
Above-mentioned distributed apparatus, are made up of multiple stage member device, and every member device has independent CPU, can be independent
Carry out Business Processing and message forwards, can be interknited by network between member device.
Wherein, when needing to transmit private data between member device, can be to the number of normal transmission between member device
Message buffer according to message is extended, the afterbody of the message buffer that private data is added on, using member device it
Between normal transmission data message carrying private data;When this data message needs to produce distributed apparatus, will carry
Private data abandon.In this way so that between member device when needing to transmit private data, can be not for this
Private data individually builds message, improves operating efficiency.
Furthermore it is also possible to the length of private data be configured on every member device so that any member equipment exists in advance
When receiving the data message carrying private data, can be based on pre-configured private data length, from this data message afterbody
Read private data.
Above-mentioned protocol stack, refers to the summation of each layer protocol in network, and when transmitting a message, message can be from upper-layer protocol
By encapsulated delivery to underlying protocol, after reaching recipient, upper-layer protocol is transferred to from underlying protocol by decapsulation.
Above-mentioned message buffer, refers to the memory headroom of program storage message, by pointing to the pointer of header, pointing to data
The head pointer of starting position and the tail pointer pointing to ED position, to record the position of header, and message data area
Position.Wherein, the numerical value of this pointer current location can be recorded in pointer, by by the numerical value in tail pointer, deducting sensing
Numerical value in the pointer of header can draw message buffering section length.When message transmits in protocol stack, carry out message encapsulation
(such as processed three layer protocols are delivered on two layer message, can pass through to move with the pointer pointing to header during decapsulation, can be moved
The position of the dynamic pointer pointing to header, two layers of head are peeled off).If movement will be needed to refer in the afterbody interpolation data of message
Tail pointer to message buffer.
In the present embodiment, when by carrying the upper-layer protocol process that protocol stack is delivered on the data message of private data,
The deflected length of the tail pointer of the message buffer of above-mentioned data message can be recorded;Process in upper-layer protocol and complete above-mentioned data
After message, the length of the message buffer of above-mentioned data message changes, can be according to the above-mentioned deflected length of record, will be upper
The position stating tail pointer returns to initial position.Therefore, in the present embodiment, the private data that above-mentioned data message carries is forwarding
During will not be destroyed;The recipient of above-mentioned private data can obtain correct private data from above-mentioned data message.
In the present embodiment, above-mentioned private data, can be configured based on actual business demand by user.Work as distribution
After any member equipment of formula equipment receives user configured private data, set this private data is forwarded to other members
When standby, user configured private data can be encapsulated in the afterbody of the message buffer of data message.
As shown in figure 1, when private data is encapsulated in data message afterbody by member device, message buffer will be pointed to
Tail pointer, from message buffer data trailer position D, moves to message buffer data trailer position E, due to recording in tail pointer
The numerical value of current location, so after tail pointer moves on to position E, the length of message buffering section length increases private data length
length5.
In the present embodiment, the member device of distributed apparatus, under the configuration of user, can be sent out to other member devices
Send the data message carrying private data it is also possible to receive the datagram carrying private data that other member devices send
Literary composition.When receive that other member devices send carry private data data message when, if this data message needs to send
Upper-layer protocol to protocol stack is processed, and upper-layer protocol, when decapsulating to this data message, can abandon header;Meanwhile, it is
Improve the efficiency of Message processing, correctly process some business (such as network auditing system), can remember according in the header of upper-layer protocol
The message length adjustment message data buffering area of record.Wherein, the message length of the header record of upper-layer protocol is in repeating process
All the time constant, specifically include the header of upper-layer protocol and the length of actual data division.
As shown in figure 1, message is when two-layer protocol is transferred to three layer protocols, two layers of header are dropped, message buffer
The pointer pointing to head moves on to position B from position A;Meanwhile, the message length recording in the header according to three layer protocols, will point to
The tail pointer of message buffer ED position moves on to position C from position E.Wherein, the report recording in the header of three layer protocols
Civilian length, in IPv4, is the value of total length field record in IPV4 header;In ipv 6, it is payload length in ipv6 header
Field value adds ipv6 header length.
When this data message is forwarded to next member device again, if this member device needs to read this data message
The private data of afterbody, the tail pointer due to pointing to message buffer ED position has moved, when this member device root
According to the length based on pre-configured above-mentioned private data, when this data message afterbody reads above-mentioned private data, the number of acquisition
According to being inaccurate.
In order that the member device of subsequently received above-mentioned data message can correctly obtain what above-mentioned data message carried
Above-mentioned private data, when member device receives the data message carrying private data, when this data message delivers to agreement upper
The deflected length of the tail pointer pointing to message buffer ED position when the upper-layer protocol of stack is processed, can be recorded.So that
Deflected length in later use record recovers the position of tail pointer so that private data is retained.
In a kind of embodiment illustrating, a global variable can be preset, by the sensing message buffering of record
The deflected length of the tail pointer of area ED position stores among this global variable.
As shown in figure 1, when above-mentioned data message is transferred to three layer protocols from two-layer protocol, pointing to message buffer data
The tail pointer of end position moves on to position C from position E, simultaneously as the position recording in the pointer of sensing header and tail pointer
Numerical value change, message buffering section length is changed into length3.At this point it is possible to the deflected length length4 of tail pointer is deposited
Store up in default global variable.
In the present embodiment, after the upper-layer protocol process of member device completes above-mentioned data message, can be based on above-mentioned
In global variable record above-mentioned deflected length, by point to message buffer ED position tail pointer position recover to
Initial position;
For example, as shown in figure 1, after the completion of above-mentioned data message is processed in three layer protocols, according in above-mentioned global variable
The above-mentioned deviation post length4 of record, tail pointer is moved on to position E from position C, and in tail pointer, the numerical value of record position occurs
Change, the data length length4 abandoning before this rejoins in packet buffer section length.By above measure, when follow-up
Receive above-mentioned data message member device need obtain private data when, the length based on pre-configured above-mentioned private data
Length5, from above-mentioned data message afterbody biased forwards, can obtain correct private data.
In this example, the member device of distributed apparatus can be monokaryon equipment or device for multi-core.Wherein, when
When member device is device for multi-core, the independent process data message that multiple CPU of member device generally can be parallel.If on give
All carry private data to the data message of above-mentioned multiple CPU, then each CPU need to be according to above processing mode, will be upper
State after the completion of data message processes in upper-layer protocol, the position pointing to the tail pointer of message buffer is recovered to initial bit
Put.Therefore, in this case, each CPU can correspond to a global variable, then records in respective global variable
, when the above-mentioned upper-layer protocol to protocol stack is processed, upper-layer protocol is in the report to this data message for handled data message
After the length of civilian buffering area is adjusted, the deflected length of tail pointer.
The data message processing for each CPU, above-mentioned deflected length is probably different.With a global variable record
Deflected length, each CPU due to member device can access this global variable, and global variable will record multiple skew length
Degree.In Restoration stage, the deflected length that arbitrary CPU obtains from global variable is possibly uncertain, if the skew obtaining
Length is not the deflected length of the local tail pointer in the data message processing, then tail pointer cannot be returned to original position
Put.
For example:Member device has three CPU:CPU1, CPU2, CPU3, CPU1 process the tail pointer of data message inclined
Moving length is m;The deflected length of the tail pointer of data message that CPU2 is processed is n;The tail pointer of the data message that CPU3 is processed
Deflected length be k.Three deflected lengths are stored in same global variable three CPU, then when data message is finished
Business, CPU, when the deflected length that global variable obtains, is likely to be obtained deflected length m it is also possible to obtain deflected length n or inclined
Move length k.If the deflected length that CPU1 obtains is deflected length n or k, the tail pointer of the data message that CPU1 is processed cannot
Return to original position.
For solving this problem, can individually set a global variable to each CPU, each CPU can only access certainly
The corresponding global variable of body.In this case, the skew of the tail pointer of data message that itself can be processed by arbitrary CPU is long
Degree storage, in corresponding global variable, in the stage recovering tail pointer position, can only obtain only from corresponding global variable
One deflected length, it is to avoid cause the tail pointer of data message cannot return to because obtaining the deflected length of mistake original
The situation of position.
For example:For three CPU of member device, set a global variable respectively;CPU1 corresponds to global variable X,
CPU2 corresponds to global variable Y, and CPU3 corresponds to global variable Z.The deflected length of the tail pointer of data message that CPU1 is processed is m,
Deflected length m is stored in global variable X;The deflected length of the tail pointer of data message that CPU2 is processed is n, by skew length
Degree n stores in global variable Y;The deflected length of the tail pointer of data message that CPU3 is processed is k, and deflected length k is stored
To in global variable Z.After upper-layer protocol process completes data message, it is long that CPU1 obtains skew in global variable X for the record
Degree m, according to this deflected length m, the tail pointer of data message is offset backward.In the same manner, CPU2 and CPU3 can also be correctly extensive
The position of the multiple handled tail pointer of data message.
In the present embodiment, member device receives during the data message carrying private data it may be necessary to utilize this private
Data is had to be used as Business Processing or control message to forward, for example, private data includes the list item forwarding this data message, now,
Member device can length based on pre-configured above-mentioned private data, read above-mentioned privately owned from the message tail of this data message
Data.
After this member device obtains above-mentioned private data, this data message is no longer necessary to carry above-mentioned private data, this
When, above-mentioned private data can be abandoned, by this measure, this data message, when being swapped out distributed apparatus, is reduced to
Original message content.
As shown in figure 1, private data length length5 is pre-configured on all member devices, any member equipment exists
When needing using private data, can be after receiving the data message carrying private data, according to private data length
Length5, by the tail pointer biased forwards of message buffer to position D, reads this private data.Read after the completion of, because after
Without private data, the position of tail pointer is no longer moved on to position E to continuous equipment by member device, keeps tail pointer in D position, will
This data message forwarding goes out distributed apparatus.
In sum, in this application, the member device of distributed apparatus send protocol stack by record data message upper
Upper-layer protocol when, point to data message the tail pointer of message buffer deflected length, upper-layer protocol process after the completion of,
The position of tail pointer can be recovered, and above-mentioned data message forwarding set to next member according to the above-mentioned deflected length of record
For so that the member device of subsequently received above-mentioned data message can obtain the private data carrying in above-mentioned data message.
Corresponding with the embodiment of the method that the present invention transmits private data, present invention also offers being used for executing above-mentioned side
The embodiment of the device of method embodiment.
Referring to Fig. 3, it is an embodiment block diagram of the device that the present invention transmits private data:
As shown in figure 3, the device 30 of this transmission private data includes:
Receiving unit 310, for receiving the data message carrying private data that other member devices send;Described private
Data is had to include the data of transmission between the member device of described distributed apparatus.
Recording unit 320, for when processing the upper-layer protocol delivering to protocol stack on described data message, record points to
The deflected length of the tail pointer of the message buffer of described data message.
Recovery unit 330, for completing described data message when upper-layer protocol is processed, the described skew based on record is long
Degree, the position of described tail pointer is recovered to initial position, and by described data message forwarding to next member device so that connecing
The member device receiving this data message obtains the described private data carrying in described data message.
In this example, described member device is device for multi-core;Wherein, every CPU sets a corresponding overall situation respectively and becomes
Amount;
Described recording unit 320, is further used for when arbitrary CPU receives the data message carrying private data, will
Described deflected length record is in the corresponding global variable of CPU.
In this example, described device also includes:
Encapsulation unit 340, for being encapsulated in the afterbody of described data message, and according to private by user configured private data
Data length is had to change the position of the tail pointer in described message buffer.
Transmitting element 350, for sending described data message to next member device.
In this example, described device also includes:
Reading unit 360, for receive that other member devices send carry private data data message when, be based on
The length of pre-configured described private data, reads described private data from the message tail of described data message.
In this example, described device also includes:
Discarding unit 370, during for described data message being produced described distributed apparatus, described datagram is pointed in adjustment
The position of the tail pointer of message buffer of literary composition, abandons described private data.
The embodiment that the application transmits the device of private data can be applied on the member device of distributed apparatus.Device
Embodiment can be realized by software it is also possible to realize by by way of hardware or software and hardware combining.As a example implemented in software,
As the device on a logical meaning, it is that the processor of member device by its place distributed apparatus is deposited non-volatile
In reservoir, corresponding computer program instructions read and run formation in internal memory.For hardware view, as shown in figure 4, being
The application transmits a kind of hardware structure diagram of the member device of device place distributed apparatus of private data, except shown in Fig. 4
Processor, internal memory, outside network interface and nonvolatile memory, distributed apparatus that in embodiment, device is located
The actual functional capability of the device generally according to this transmission private data for the member device, can also include other hardware, no longer superfluous to this
State.
In said apparatus, the process of realizing of the function of unit and effect specifically refers to corresponding step in said method
Realize process, will not be described here.
For device embodiment, because it corresponds essentially to embodiment of the method, thus real referring to method in place of correlation
The part applying example illustrates.Device embodiment described above is only schematically, wherein said as separating component
The unit illustrating can be or may not be physically separate, as the part that unit shows can be or can also
It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to actual
Need to select the purpose to realize application scheme for some or all of module therein.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and to implement.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, all essences in the application
Within god and principle, any modification, equivalent substitution and improvement done etc., should be included within the scope of the application protection.
Claims (10)
1. a kind of method of transmission private data, is applied on the member device of distributed apparatus it is characterised in that including:
Receive the data message carrying private data that other member devices send;Described private data is included in described distribution
The data of transmission between the member device of formula equipment;
When processing the upper-layer protocol delivering to protocol stack on described data message, the message that record points to described data message delays
Rush the deflected length of the tail pointer in area;
Complete described data message when upper-layer protocol is processed, based on the described deflected length of record, by the position of described tail pointer
Recover to initial position, and by described data message forwarding to next member device so that receiving the member of this data message
Equipment obtains the described private data carrying in described data message.
2. method according to claim 1 is it is characterised in that described member device is device for multi-core;Wherein, every CPU
Set a corresponding global variable respectively;
Methods described also includes:
When arbitrary CPU receives the data message carrying private data, by described deflected length record in the corresponding overall situation of CPU
In variable.
3. method according to claim 1 is it is characterised in that methods described also includes:
User configured private data is encapsulated in the afterbody of described data message, and described report is changed according to private data length
The position of the tail pointer in civilian buffering area;
Described data message is sent to next member device.
4. method according to claim 1 is it is characterised in that methods described also includes:
Receive that other member devices send carry private data data message when, based on pre-configured described private data
Length, read described private data from the message tail of described data message.
5. method according to claim 4 is it is characterised in that methods described also includes:
When described data message is produced described distributed apparatus, the tail that the message buffer of described data message is pointed in adjustment refers to
The position of pin, abandons described private data.
6. a kind of device of transmission private data, is applied on the member device of distributed apparatus it is characterised in that including:
Receiving unit, for receiving the data message carrying private data that other member devices send;Described private data
Data including transmission between the member device of described distributed apparatus;
Recording unit, for when processing the upper-layer protocol delivering to protocol stack on described data message, record points to described number
Deflected length according to the tail pointer of the message buffer of message;
Recovery unit, for completing described data message when upper-layer protocol is processed, based on the described deflected length of record, will be described
The position of tail pointer is recovered to initial position, and by described data message forwarding to next member device so that receiving this number
Member device according to message obtains the described private data carrying in described data message.
7. device according to claim 6 is it is characterised in that described member device is device for multi-core;Wherein, every CPU
Set a corresponding global variable respectively;
Described recording unit, is further used for when arbitrary CPU receives the data message carrying private data, by described skew
Length records are in the corresponding global variable of CPU.
8. device according to claim 6 is it is characterised in that described device also includes:
Encapsulation unit, for being encapsulated in the afterbody of described data message, and according to private data by user configured private data
Length changes the position of the tail pointer in described message buffer;
Transmitting element, for sending described data message to next member device.
9. device according to claim 6 is it is characterised in that described device also includes:
Reading unit, for receive that other member devices send carry private data data message when, based on pre-configured
Described private data length, read described private data from the message tail of described data message.
10. device according to claim 9 is it is characterised in that described device also includes:
Discarding unit, during for described data message being produced described distributed apparatus, the report of described data message is pointed in adjustment
The position of the tail pointer of civilian buffering area, abandons described private data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610837535.3A CN106385418B (en) | 2016-09-21 | 2016-09-21 | A kind of method and device for transmitting private data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610837535.3A CN106385418B (en) | 2016-09-21 | 2016-09-21 | A kind of method and device for transmitting private data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106385418A true CN106385418A (en) | 2017-02-08 |
CN106385418B CN106385418B (en) | 2019-11-12 |
Family
ID=57935824
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610837535.3A Active CN106385418B (en) | 2016-09-21 | 2016-09-21 | A kind of method and device for transmitting private data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106385418B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109600321A (en) * | 2017-09-30 | 2019-04-09 | 迈普通信技术股份有限公司 | Message forwarding method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5898883A (en) * | 1994-01-25 | 1999-04-27 | Hitachi, Ltd. | Memory access mechanism for a parallel processing computer system with distributed shared memory |
US20150169226A1 (en) * | 2013-12-17 | 2015-06-18 | Xipeng Shen | Technologies for persistent memory programming |
CN105591982A (en) * | 2015-07-24 | 2016-05-18 | 杭州华三通信技术有限公司 | Message transmission method and device |
CN105721433A (en) * | 2016-01-18 | 2016-06-29 | 河南科技大学 | Access control method of user private data of online social networks |
-
2016
- 2016-09-21 CN CN201610837535.3A patent/CN106385418B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5898883A (en) * | 1994-01-25 | 1999-04-27 | Hitachi, Ltd. | Memory access mechanism for a parallel processing computer system with distributed shared memory |
US20150169226A1 (en) * | 2013-12-17 | 2015-06-18 | Xipeng Shen | Technologies for persistent memory programming |
CN105591982A (en) * | 2015-07-24 | 2016-05-18 | 杭州华三通信技术有限公司 | Message transmission method and device |
CN105721433A (en) * | 2016-01-18 | 2016-06-29 | 河南科技大学 | Access control method of user private data of online social networks |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109600321A (en) * | 2017-09-30 | 2019-04-09 | 迈普通信技术股份有限公司 | Message forwarding method and device |
CN109600321B (en) * | 2017-09-30 | 2022-06-21 | 迈普通信技术股份有限公司 | Message forwarding method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106385418B (en) | 2019-11-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220197838A1 (en) | System and method for facilitating efficient event notification management for a network interface controller (nic) | |
TWI332150B (en) | Processing data for a tcp connection using an offload unit | |
US7710973B2 (en) | Error masking for data transmission using received data | |
CN104753980B (en) | Data transmission method and relevant apparatus and communication system | |
US7849211B2 (en) | Method and system for reliable multicast datagrams and barriers | |
CN104967502A (en) | Data sending method and apparatus, and data receiving method and apparatus | |
CN107302499B (en) | NFV protocol message transmitting and receiving method without copying message buffer | |
CN109412922B (en) | Method, forwarding device, controller and system for transmitting message | |
US20060101090A1 (en) | Method and system for reliable datagram tunnels for clusters | |
CN103685060B (en) | data packet sending method and device | |
CN103141050A (en) | Data packet retransmission method and node in quick path interconnect system | |
CN103885840A (en) | FCoE protocol acceleration engine IP core based on AXI4 bus | |
CN107360177A (en) | A kind of message transmitting method and device based on UDP | |
CN108235382A (en) | A kind of method, node device and the server of transmission rate adjustment | |
CN109547350A (en) | A kind of route learning method and gateway | |
WO2023273241A1 (en) | Networking communication method and system, and node device, storage medium and electronic device | |
CN106385418A (en) | Method and device for transmitting private data | |
CN105939293B (en) | A kind of SKB recovery method and device | |
US20210203758A1 (en) | Network system and conversion apparatus crossing different transmission protocols | |
US10372667B2 (en) | Communication apparatus and control method thereof | |
CN108173950B (en) | Data transmission method, device and system, image acquisition equipment and storage medium | |
CN106789440B (en) | IP packet header detection method and device | |
CN106302426A (en) | A kind of udp protocol stack implementation method of band retransmission mechanism based on FPGA | |
CN106656842A (en) | Load balancing method and flow forwarding device | |
CN104753640B (en) | A kind of adaptation method and device based on network transmission link |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
CB02 | Change of applicant information |
Address after: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building Applicant after: Hangzhou Dipu Polytron Technologies Inc Address before: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building Applicant before: Hangzhou Dipu Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |