CN106941460A - File transmitting method and device - Google Patents
File transmitting method and device Download PDFInfo
- Publication number
- CN106941460A CN106941460A CN201610005462.1A CN201610005462A CN106941460A CN 106941460 A CN106941460 A CN 106941460A CN 201610005462 A CN201610005462 A CN 201610005462A CN 106941460 A CN106941460 A CN 106941460A
- Authority
- CN
- China
- Prior art keywords
- message
- spatial cache
- receiving queue
- sent
- sending
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/26—Flow control; Congestion control using explicit feedback to the source, e.g. choke packets
- H04L47/266—Stopping or restarting the source, e.g. X-on or X-off
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/9063—Intermediate storage in different physical parts of a node or terminal
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of file transmitting method, methods described includes:When sending the first message, first message is stored in spatial cache;Initiate to send request to receiving queue;When receiving the information that receiving queue agreement is sent, the first message of respective numbers in the spatial cache is sent to the receiving queue according to described information, make it that the receiving queue sends the first message of respective numbers.The invention also discloses a kind of packet transmission device.Message is first stored in spatial cache by the present invention when sending message, and the message of respective numbers is then sent to receiving queue, it can solve the problem that because when message amount is more, the problem of easily causing receiving queue spilling, dropping packets, so that the proper communication between ensureing equipment.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of file transmitting method and device.
Background technology
Equipment in communication network is all interacted by protocol massages, by the transmission of message and is connect
Receive, complete the discovery and the exchange of relevant information of the equipment of neighbours.For the association between each compatible manufacturer
View communication, accordingly, it is necessary to formulate common rules of interaction and fixed protocol massages form, otherwise without
Method ensures the intercommunication between different vendor.
At present, industry is typically sent protocol massages into the receiving queue of device port by protocol process,
Protocol massages are sent by the receiving queue of device port again.This mode is it is possible that a certain association
The a large amount of protocol massages of view process burst (such as routing protocol process may notice a large amount of routing iinformations) so that connect
Receive queue to be filled up by the protocol massages, the protocol massages for causing other follow-up agreements to send, which overflow, to be dropped,
So as to influence communication between other protocol process.
As shown in Figure 1:Assuming that business process 1, business process 2 and business process 3 are respectively intermediate system
- intermediate system Intermediate System-to-Intermediate System (ISIS) process, borde gateway association
Discuss Border Gateway Protocol (BGP) processes and link-state routing algorithm (including open most short
Heat source Open Shortest Path First (OSPF) process).ISIS processes send substantial amounts of protocol massages
Be filled to receiving queue and receiving queue, the neighbor keep-alive HELLO messages that bgp process is sent because
Filled up for receiving queue and overflow discarding, the neighbor keep-alive HELLO messages of bgp process are sent not always
Go out, after certain time, opposite equip. bgp process can be because be not timely received local terminal bgp process
The neighbor keep-alive HELLO messages of transmission, can delete the neighborhood of local terminal, cause the route of previous advertisement
Information is all deleted, and then influences the normal forwarding of device data message.
The content of the invention
It is a primary object of the present invention to propose a kind of file transmitting method and device, it is intended to solve existing skill
Receiving queue is easily filled in art, so that the technical problem of dropping packets.
To achieve the above object, a kind of file transmitting method that the present invention is provided, methods described includes following
Step:
When sending the first message, first message is stored in spatial cache;
Initiate to send request to receiving queue;
When receiving the information that receiving queue agreement is sent, according to described information by the spatial cache
First message of respective numbers is sent to the receiving queue, make it that the receiving queue sends respective counts
First message of amount.
Preferably, it is described when sending the first message, first message is stored in spatial cache
Step includes:
When sending the first message, spatial cache is opened up;
First message is stored in the spatial cache.
Preferably, it is described to initiate to include after sending the step of asking to receiving queue:
Receive the receiving queue completely when send information when, according to receiving the receiving queue
The pause of transmission sends information, and pause sends the first message in the spatial cache.
Preferably, it is described when receiving receiving queue and agreeing to the information sent, according to described information by institute
The first message for stating respective numbers in spatial cache is sent to the receiving queue, to cause the reception team
Include after the step of row send the first message of respective numbers:
When first message of respective numbers in the spatial cache is sent to the receiving queue, institute is judged
State in spatial cache whether also have the first message leave message;
If also having in the spatial cache and leaving message, when sending next time, to the reception team
Row send the described of respective numbers and leave message.
Preferably, first message by respective numbers in the spatial cache is sent to the reception team
During row, judge in the spatial cache whether to also have the first message the step of leaving message after also include:
If also having in the spatial cache and leaving message, when sending next time, to the reception team
The second message of respective numbers in message and spatial cache is left described in row transmission, wherein second message
For the message preserved after first message.
Preferably, it is described when sending next time, ease up to message is left described in receiving queue transmission
The step of depositing the second message of respective numbers in space includes:
When sending next time, according to first message and the corresponding priority of second message, to
The receiving queue sends the described of respective amount and leaves message and/or the second message.
In addition, to achieve the above object, the present invention also provides a kind of packet transmission device, described device bag
Include:
Preserving module, for when sending the first message, first message to be stored in spatial cache;
Request module, for initiating to send request to receiving queue;
First sending module, for when receiving the information that receiving queue agreement is sent, according to the letter
Breath sends the first message of respective numbers in the spatial cache to the receiving queue, described to cause
Receiving queue sends the first message of respective numbers.
Preferably, the preserving module includes:
Unit is opened up, for when sending the first message, opening up spatial cache;
Storage unit, first message is stored in the spatial cache.
Preferably, described device also includes:
Suspend module, for when receiving the information sent when the receiving queue expires, according to reception
Information is sent to the pause that the receiving queue is sent, pause sends the first message in the spatial cache.
Preferably, described device also includes:
Judge module, is received for the first message of respective numbers in the spatial cache to be sent to described
During queue, judge in the spatial cache whether to also have the first message leaves message;
Second sending module, if leaving message for also having in the spatial cache, sends out next time
When sending, sent to the receiving queue and leave message described in respective numbers.
Preferably, described device also includes:
3rd sending module, if leaving message for also having in the spatial cache, sends out next time
When sending, to the second message that respective numbers in message and spatial cache are left described in receiving queue transmission,
Wherein described second message is the message preserved after first message.
Preferably, the 3rd sending module is additionally operable to when sending next time, according to first message
Priority corresponding with second message, sends to the receiving queue and leave report described in respective amount
Text and/or the second message.
First message is stored in spatial cache by the present invention when sending the first message;To reception
Queue is initiated to send request;, will according to described information when receiving the information that receiving queue agreement is sent
The first message of respective numbers is sent to the receiving queue in the spatial cache, to cause the reception
Queue sends the first message of respective numbers.Through the above way, the present invention first will when sending message
Message is stored in spatial cache, the message of respective numbers is then sent to receiving queue, such as in message
Quantity than it is larger when, according in receiving queue can according to receiving queue receiving ability, send correspondence receive
The message of queue receiving ability, the message left is sent next time, or when message amount is smaller,
When message amount is not above receiving queue receiving ability, all messages are sent to receiving queue, so that
It will not be filled because of receiving queue, and abandon other messages, it is ensured that the proper communication between equipment.
Brief description of the drawings
Fig. 1 sends vivid schematic diagram for message in the prior art;
Fig. 2 is the schematic flow sheet of file transmitting method first embodiment of the present invention;
Fig. 3 be in the embodiment of the present invention when sending the first message, first message is stored in caching empty
Between in step refinement schematic flow sheet;
Fig. 4 is the schematic flow sheet of file transmitting method second embodiment of the present invention;
Fig. 5 is the high-level schematic functional block diagram of packet transmission device first embodiment of the present invention;
Fig. 6 is the refinement high-level schematic functional block diagram of preserving module in the embodiment of the present invention;
Fig. 7 is the high-level schematic functional block diagram of packet transmission device second embodiment of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be done further referring to the drawings in conjunction with the embodiments
Explanation.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, limit is not used to
The fixed present invention.
The present invention provides a kind of file transmitting method.
Reference picture 2, Fig. 2 is the schematic flow sheet of file transmitting method first embodiment of the present invention.
In the present embodiment, the file transmitting method includes:
Step S10, when sending the first message, first message is stored in spatial cache;
Quick to send the message produced to save the time for opening up spatial cache, the present invention exists in advance
Device memory or memory space open up spatial cache, can not also first open up caching in specific implementation in advance
Space.When sending message, such as when needing to send keep Alive Packet between routing device, the present invention is first
The message of generation is stored in the spatial cache opened up in advance.
Step S20, initiates to send request to receiving queue;
The message is stored in after the spatial cache, initiates to send in spatial cache to receiving queue and reports
The transmission request of text.When receiving queue receives the transmission request, judge current receiving queue whether
It is full, if current receiving queue is full, the full information of the current receiving queue of feedback correspondence, such as
The information that feedback information sends for pause;If current receiving queue is sky, feedback correspondence currently connects
It is empty information to receive queue.Subsequently into step S30.
Step S30, will be described slow according to described information when receiving the information that receiving queue agreement is sent
The first message for depositing respective numbers in space is sent to the receiving queue, make it that the receiving queue is sent out
Send the first message of respective numbers.
The business process for sending message carries out corresponding processing according to receiving queue feedack, is receiving
During the feedback information that the pause arrived is sent, pause sends message in the spatial cache.
In the information that the agreement for receiving the receiving queue feedback is sent, the business process of message is sent
The information that the agreement fed back according to the receiving queue is sent, the message preserved in the spatial cache is sent out
The message of respective amount is sent to the receiving queue, including:The message preserved in the spatial cache
It is all by what is preserved in the spatial cache when quantity is less than or equal to the receiving ability of the receiving queue
Message is sent to the receiving queue;The quantity of the message preserved in the spatial cache is more than described connect
When receiving the receiving ability of queue, the message of the quantity of the receiving ability of the correspondence receiving queue is sent,
After the receiving queue has been sent, the message left is retransmited.It should be noted that in transmission process,
The quantity that message is sent is mainly using the receiving ability for meeting the receiving queue as standard, in message amount
When more, the message of the receiving ability of the correspondence receiving queue is sent every time, until the message is whole
Send.
First message is stored in spatial cache by the present invention when sending the first message;To reception
Queue is initiated to send request;, will according to described information when receiving the information that receiving queue agreement is sent
The first message of respective numbers is sent to the receiving queue in the spatial cache, to cause the reception
Queue sends the first message of respective numbers.Through the above way, the present invention first will when sending message
Message is stored in spatial cache, the message of respective numbers is then sent to receiving queue, such as in message
Quantity than it is larger when, according in receiving queue can according to receiving queue receiving ability, send correspondence receive
The message of queue receiving ability, the message left is sent next time, or when message amount is smaller,
When message amount is not above receiving queue receiving ability, all messages are sent to receiving queue, so that
It will not be filled because of receiving queue, and abandon other messages, it is ensured that the proper communication between equipment.
Reference picture 3, Fig. 3 be the embodiment of the present invention in send the first message when, will first message guarantor
There is the refinement schematic flow sheet of the step in spatial cache.
Based on file transmitting method first embodiment of the present invention, step S10 can include:
Step S11, when sending the first message, opens up spatial cache;
Step S12, first message is stored in the spatial cache.
To mitigate the space pressure of internal memory or memory module, the present embodiment can not also in advance in internal memory or
Spatial cache is opened up in person's memory module, when sending message, is opened up in internal memory or memory module slow
Space is deposited, then the message for needing to send is stored in the spatial cache.
Reference picture 4, Fig. 4 is the schematic flow sheet of file transmitting method second embodiment of the present invention.
Based on file transmitting method first embodiment of the present invention, methods described can also include:
Step S40, the first message of respective numbers in the spatial cache is sent to the receiving queue
When, judge in the spatial cache whether to also have the first message leaves message;
Step S50, leaves message, when sending next time, to institute if also had in the spatial cache
State the described of receiving queue transmission respective numbers and leave message.
Message is sent to the receiving queue in the spatial cache is sent, and can also judge described slow
Deposit in space and whether also left message, message is left if a determination be made that also having in the spatial cache,
Then next time when sending, sent to the receiving queue and leave message described in respective numbers.Such as exist
9 keep Alive Packets are preserved in the spatial cache altogether, the receiving ability of the receiving queue is 5 reports
Text, when sending 5 messages to the receiving queue, judges also to have left 4 guarantors in the spatial cache
Message living, then when sending next time, send 4 keep Alive Packets left, or in the spatial cache
In altogether preserve 11 keep Alive Packets, to the receiving queue send 5 messages, judge the caching
6 keep Alive Packets have also been left in space, then when sending next time, have retransmited the 5 keep-alive reports left
Text, then judge whether also left message in the spatial cache, determine and also have 1 in the spatial cache
During individual keep Alive Packet, then when third time is sent, this 1 keep Alive Packet left is sent.
Further, message is left if also had in the spatial cache, when sending next time, to
The second message of respective numbers in message and spatial cache, wherein institute are left described in the receiving queue transmission
It is the message preserved after first message to state the second message.Such as continuously generate in a device many
Planting in message, every kind of message has multiple, then can be preserved in the spatial cache by FIFO principle
The message of multiple type and quantity, when sending to the receiving queue, according to the principle of FIFO,
Send to the receiving queue, the quantity sent every time is the quantity of the receiving queue receiving ability, than
Such as receiving queue can receive 5 messages every time, then send the business process of message every time to the receiving queue
5 messages are sent, the quantity occurred every time is sending the to fill up the receiving queue as the first principle
One message also has when leaving, and sends second message of respective amount.Can also be in institute in specific implementation
State when preserving a variety of messages in spatial cache, first according to the time for entering the spatial cache, to a variety of
Message is ranked up, and when sending message, is first taken out the message earliest into the spatial cache, with
The receiving queue is filled up for criterion, corresponding quantity in the message taken out is sent to the receiving queue,
When the message taken out has not been sent, that is, when the message taken out leaves message, left described
Message is placed in the spatial cache according to the position after the sorted a variety of messages of time progress of entrance
Put.By that analogy, can constantly it be circulated.
Further, to improve promptness and the important message prior transmission of guarantee that message is sent, under
When once sending, according to first message and the corresponding priority of second message, received to described
Queue sends the described of respective amount and leaves message and/or the second message.
Wherein, the different message of correspondence, which can be pre-set in priority, the spatial cache, preserves many
When planting message, the spatial cache is ranked up to a variety of messages of preservation according to priority level every time,
Such as, can be first by the priority level highest preserved in the spatial cache when first time sending message
Message, to fill up the receiving queue as criterion, the correspondence receiving queue receiving ability is sent every time
Preferred highest-ranking message, until the spatial cache in message sent, including:Priority
When the quantity of other highest message is the integral multiple of the receiving queue receiving ability, institute is stored according to message
The order for stating spatial cache is transmitted, and priority level second in the spatial cache is retransmited after having sent
High message, by that analogy;The quantity of priority level highest message is not that the receiving queue receives energy
During the integral multiple of power, the order for being first stored in the spatial cache according to message is transmitted, in last time
During transmission, because the receiving queue is not filled, then respective amount is sent in the spatial cache
The high message of priority level second, to fill up the receiving queue, is transmitted by that analogy.It is specific real
Shi Zhong, if the priority level that two or more message is preserved in the spatial cache is identical,
It can be transmitted according to the principle of FIFO.It can also be sent out in other manners in more implement
Send.
The present invention further provides a kind of packet transmission device.
Reference picture 5, Fig. 5 is the high-level schematic functional block diagram of packet transmission device first embodiment of the present invention;
In the present embodiment, the packet transmission device includes:
Preserving module 10, for when sending the first message, first message to be stored in into spatial cache
In.
Quick to send the message produced to save the time for opening up spatial cache, the present invention exists in advance
Device memory or memory space open up spatial cache, can not also first open up caching in specific implementation in advance
Space.When sending message, such as when needing to send keep Alive Packet between routing device, the present invention is first
The message of generation is stored in the spatial cache opened up in advance.
Request module 20, for initiating to send request to receiving queue.
The message is stored in after the spatial cache, initiates to send in spatial cache to receiving queue and reports
The transmission request of text.When receiving queue receives the transmission request, judge current receiving queue whether
It is full, if current receiving queue is full, the full information of the current receiving queue of feedback correspondence, such as
The information that feedback information sends for pause;If current receiving queue is sky, feedback correspondence currently connects
It is empty information to receive queue.
First sending module 30, for when receiving the information that receiving queue agreement is sent, according to described
Information sends the first message of respective numbers in the spatial cache to the receiving queue, to cause
State the first message that receiving queue sends respective numbers.
Suspend module (not shown), for receive the receiving queue completely when send information when,
Information is sent according to the pause that the receiving queue sends is received, and pause sends in the spatial cache the
One message.
The business process for sending message carries out corresponding processing according to receiving queue feedack, is receiving
During the feedback information that the pause arrived is sent, pause sends message in the spatial cache.
In the information that the agreement for receiving the receiving queue feedback is sent, the business process of message is sent
The information that the agreement fed back according to the receiving queue is sent, the message preserved in the spatial cache is sent out
The message of respective amount is sent to the receiving queue, including:The message preserved in the spatial cache
It is all by what is preserved in the spatial cache when quantity is less than or equal to the receiving ability of the receiving queue
Message is sent to the receiving queue;The quantity of the message preserved in the spatial cache is more than described connect
When receiving the receiving ability of queue, the message of the quantity of the receiving ability of the correspondence receiving queue is sent,
After the receiving queue has been sent, the message left is retransmited.It should be noted that in transmission process,
The quantity that message is sent is mainly using the receiving ability for meeting the receiving queue as standard, in message amount
When more, the message of the receiving ability of the correspondence receiving queue is sent every time, until the message is whole
Send.When the receiving queue receives message in spatial cache, the message is sent to corresponding end
End.
First message is stored in spatial cache by the present invention when sending the first message;To reception
Queue is initiated to send request;, will according to described information when receiving the information that receiving queue agreement is sent
The first message of respective numbers is sent to the receiving queue in the spatial cache, to cause the reception
Queue sends the first message of respective numbers.Through the above way, the present invention first will when sending message
Message is stored in spatial cache, the message of respective numbers is then sent to receiving queue, such as in message
Quantity than it is larger when, according in receiving queue can according to receiving queue receiving ability, send correspondence receive
The message of queue receiving ability, the message left is sent next time, or when message amount is smaller,
When message amount is not above receiving queue receiving ability, all messages are sent to receiving queue, so that
It will not be filled because of receiving queue, and abandon other messages, it is ensured that the proper communication between equipment.
Refering to Fig. 6, Fig. 6 is the refinement high-level schematic functional block diagram of preserving module in the embodiment of the present invention;
Based on packet transmission device first embodiment of the present invention, preserving module 10 includes:
Unit 11 is opened up, for when sending the first message, opening up spatial cache.
Storage unit 12, first message is stored in the spatial cache.
To mitigate the space pressure of internal memory or memory module, the present embodiment can not also in advance in internal memory or
Spatial cache is opened up in person's memory module, when sending message, is opened up in internal memory or memory module slow
Space is deposited, then the message for needing to send is stored in the spatial cache.
Refering to Fig. 7, Fig. 7 is the high-level schematic functional block diagram of packet transmission device second embodiment of the present invention.
Based on packet transmission device first embodiment of the present invention, described device can also include:
Judge module 40, connects for the first message of respective numbers in the spatial cache to be sent to described
When receiving queue, whether also judge in the spatial cache the first message leaves message.
Second sending module 50, if message is left for also having in the spatial cache, next time
During transmission, sent to the receiving queue and leave message described in respective numbers.
3rd sending module 60, if message is left for also having in the spatial cache, next time
During transmission, to the second report that respective numbers in message and spatial cache are left described in receiving queue transmission
Text.
Message is sent to the receiving queue in the spatial cache is sent, and can also judge described slow
Deposit in space and whether also left message, message is left if a determination be made that also having in the spatial cache,
Then next time when sending, sent to the receiving queue and leave message described in respective numbers.Such as exist
9 keep Alive Packets are preserved in the spatial cache altogether, the receiving ability of the receiving queue is 5 reports
Text, when sending 5 messages to the receiving queue, judges also to have left 4 guarantors in the spatial cache
Message living, then when sending next time, send 4 keep Alive Packets left, or in the spatial cache
In altogether preserve 11 keep Alive Packets, to the receiving queue send 5 messages, judge the caching
6 keep Alive Packets have also been left in space, then when sending next time, have retransmited the 5 keep-alive reports left
Text, then judge whether also left message in the spatial cache, determine and also have 1 in the spatial cache
During individual keep Alive Packet, then when third time is sent, this 1 keep Alive Packet left is sent.
Further, message is left if also had in the spatial cache, when sending next time, to
The second message of respective numbers in message and spatial cache, wherein institute are left described in the receiving queue transmission
It is the message preserved after first message to state the second message.Such as continuously generate in a device many
Planting in message, every kind of message has multiple, then can be preserved in the spatial cache by FIFO principle
The message of multiple type and quantity, when sending to the receiving queue, according to the principle of FIFO,
Send to the receiving queue, the quantity sent every time is the quantity of the receiving queue receiving ability, than
Such as receiving queue can receive 5 messages every time, then send the business process of message every time to the receiving queue
5 messages are sent, the quantity occurred every time is sending the to fill up the receiving queue as the first principle
One message also has when leaving, and sends second message of respective amount.Can also be in institute in specific implementation
State when preserving a variety of messages in spatial cache, first according to the time for entering the spatial cache, to a variety of
Message is ranked up, and when sending message, is first taken out the message earliest into the spatial cache, with
The receiving queue is filled up for criterion, corresponding quantity in the message taken out is sent to the receiving queue,
When the message taken out has not been sent, that is, when the message taken out leaves message, left described
Message is placed in the spatial cache according to the position after the sorted a variety of messages of time progress of entrance
Put.By that analogy, can constantly it be circulated.
Further, the promptness sent to improve message is sent with the important message prior of guarantee, and the 3rd
Sending module 60 is additionally operable to when sending next time, corresponding with second message according to first message
Priority, to the receiving queue send respective amount described in leave message and/or the second message.
Wherein, the different message of correspondence, which can be pre-set in priority, the spatial cache, preserves many
When planting message, the spatial cache is ranked up to a variety of messages of preservation according to priority level every time,
Such as, can be first by the priority level highest preserved in the spatial cache when first time sending message
Message, to fill up the receiving queue as criterion, the correspondence receiving queue receiving ability is sent every time
Preferred highest-ranking message, until the spatial cache in message sent, including:Priority
When the quantity of other highest message is the integral multiple of the receiving queue receiving ability, institute is stored according to message
The order for stating spatial cache is transmitted, and priority level second in the spatial cache is retransmited after having sent
High message, by that analogy;The quantity of priority level highest message is not that the receiving queue receives energy
During the integral multiple of power, the order for being first stored in the spatial cache according to message is transmitted, in last time
During transmission, because the receiving queue is not filled, then respective amount is sent in the spatial cache
The high message of priority level second, to fill up the receiving queue, is transmitted by that analogy.It is specific real
Shi Zhong, if the priority level that two or more message is preserved in the spatial cache is identical,
It can be transmitted according to the principle of FIFO.It can also be sent out in other manners in more implement
Send.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every
The equivalent structure or equivalent flow conversion made using description of the invention and accompanying drawing content, or directly or
Connect and be used in other related technical fields, be included within the scope of the present invention.
Claims (12)
1. a kind of file transmitting method, it is characterised in that the described method comprises the following steps:
When sending the first message, first message is stored in spatial cache;
Initiate to send request to receiving queue;
When receiving the information that receiving queue agreement is sent, according to described information by the spatial cache
First message of respective numbers is sent to the receiving queue, make it that the receiving queue sends respective counts
First message of amount.
2. the method as described in claim 1, it is characterised in that described when sending the first message, will
The step that first message is stored in spatial cache includes:
When sending the first message, spatial cache is opened up;
First message is stored in the spatial cache.
3. the method as described in claim 1, it is characterised in that described sent to receiving queue initiation please
Include after the step of asking:
Receive the receiving queue completely when send information when, according to receiving the receiving queue
The pause of transmission sends information, and pause sends the first message in the spatial cache.
4. the method as described in claim 1, it is characterised in that described to receive receiving queue agreement
During the information of transmission, according to described information by the first message of respective numbers in the spatial cache send to
The receiving queue, to wrap after the step of receiving queue sends the first message of respective numbers
Include:
When first message of respective numbers in the spatial cache is sent to the receiving queue, institute is judged
State in spatial cache whether also have the first message leave message;
If also having in the spatial cache and leaving message, when sending next time, to the reception team
Row send the described of respective numbers and leave message.
5. method as claimed in claim 4, it is characterised in that it is described will be corresponding in the spatial cache
When first message of quantity is sent to the receiving queue, judge whether also have first in the spatial cache
Message the step of leaving message after also include:
If also having in the spatial cache and leaving message, when sending next time, to the reception team
The second message of respective numbers in message and spatial cache is left described in row transmission, wherein second message
For the message preserved after first message.
6. method as claimed in claim 5, it is characterised in that described when sending next time, to institute
The step of leaving the second message of respective numbers in message and spatial cache described in receiving queue transmission is stated to wrap
Include:
When sending next time, according to first message and the corresponding priority of second message, to
The receiving queue sends the described of respective amount and leaves message and/or the second message.
7. a kind of packet transmission device, it is characterised in that described device includes:
Preserving module, for when sending the first message, first message to be stored in spatial cache;
Request module, for initiating to send request to receiving queue;
First sending module, for when receiving the information that receiving queue agreement is sent, according to the letter
Breath sends the first message of respective numbers in the spatial cache to the receiving queue, described to cause
Receiving queue sends the first message of respective numbers.
8. device as claimed in claim 7, it is characterised in that the preserving module includes:
Unit is opened up, for when sending the first message, opening up spatial cache;
Storage unit, first message is stored in the spatial cache.
9. device as claimed in claim 7, it is characterised in that described device also includes:
Suspend module, for when receiving the information sent when the receiving queue expires, according to reception
Information is sent to the pause that the receiving queue is sent, pause sends the first message in the spatial cache.
10. device as claimed in claim 8, it is characterised in that described device also includes:
Judge module, is received for the first message of respective numbers in the spatial cache to be sent to described
During queue, judge in the spatial cache whether to also have the first message leaves message;
Second sending module, if leaving message for also having in the spatial cache, sends out next time
When sending, sent to the receiving queue and leave message described in respective numbers.
11. device as claimed in claim 10, it is characterised in that described device also includes:
3rd sending module, if leaving message for also having in the spatial cache, sends out next time
When sending, to the second message that respective numbers in message and spatial cache are left described in receiving queue transmission,
Wherein described second message is the message preserved after first message.
12. device as claimed in claim 11, it is characterised in that the 3rd sending module is additionally operable to
When sending next time, according to first message and the corresponding priority of second message, to described
Receiving queue sends the described of respective amount and leaves message and/or the second message.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610005462.1A CN106941460A (en) | 2016-01-05 | 2016-01-05 | File transmitting method and device |
PCT/CN2016/083341 WO2016197822A1 (en) | 2016-01-05 | 2016-05-25 | Packet sending method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610005462.1A CN106941460A (en) | 2016-01-05 | 2016-01-05 | File transmitting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106941460A true CN106941460A (en) | 2017-07-11 |
Family
ID=57502956
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610005462.1A Pending CN106941460A (en) | 2016-01-05 | 2016-01-05 | File transmitting method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106941460A (en) |
WO (1) | WO2016197822A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109218206A (en) * | 2018-09-04 | 2019-01-15 | 杭州迪普科技股份有限公司 | A kind of method and apparatus limiting Link State Notification quantity |
WO2019029220A1 (en) * | 2017-08-10 | 2019-02-14 | 华为技术有限公司 | Network device |
CN110149552A (en) * | 2019-05-08 | 2019-08-20 | 百度在线网络技术(北京)有限公司 | A kind of processing method and terminal of video flowing frame data |
CN112291165A (en) * | 2019-07-24 | 2021-01-29 | 中兴通讯股份有限公司 | Message processing method, switch and computer readable storage medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114095433B (en) * | 2021-11-25 | 2024-02-23 | 新华三技术有限公司合肥分公司 | Message sending method and device, electronic equipment and medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101621469B (en) * | 2009-08-13 | 2012-01-04 | 杭州华三通信技术有限公司 | Control device and control method for accessing data messages |
CN104125168A (en) * | 2013-04-27 | 2014-10-29 | 中兴通讯股份有限公司 | A scheduling method and system for shared resources |
-
2016
- 2016-01-05 CN CN201610005462.1A patent/CN106941460A/en active Pending
- 2016-05-25 WO PCT/CN2016/083341 patent/WO2016197822A1/en active Application Filing
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019029220A1 (en) * | 2017-08-10 | 2019-02-14 | 华为技术有限公司 | Network device |
US11165710B2 (en) | 2017-08-10 | 2021-11-02 | Huawei Technologies Co., Ltd. | Network device with less buffer pressure |
CN109218206A (en) * | 2018-09-04 | 2019-01-15 | 杭州迪普科技股份有限公司 | A kind of method and apparatus limiting Link State Notification quantity |
CN109218206B (en) * | 2018-09-04 | 2021-03-23 | 杭州迪普科技股份有限公司 | Method and device for limiting link state advertisement quantity |
CN110149552A (en) * | 2019-05-08 | 2019-08-20 | 百度在线网络技术(北京)有限公司 | A kind of processing method and terminal of video flowing frame data |
CN112291165A (en) * | 2019-07-24 | 2021-01-29 | 中兴通讯股份有限公司 | Message processing method, switch and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2016197822A1 (en) | 2016-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106941460A (en) | File transmitting method and device | |
CN107948076B (en) | Method and device for forwarding message | |
JP2022093474A (en) | Information transmission method and device | |
US9338192B1 (en) | Connection management using connection request transfer protocol | |
US8913485B2 (en) | Open shortest path first (OSPF) nonstop routing (NSR) with link derivation | |
US20210075715A1 (en) | Network Construction Method, System, and Routing Device | |
US10812292B2 (en) | Packet processing method and device | |
CN108881008A (en) | A kind of methods, devices and systems of data transmission | |
CN102368736A (en) | Message sending method and equipment | |
CN101924689A (en) | Negotiation method of maximum segmentation parameters and network forwarding equipment | |
CN105847142B (en) | A kind of message transmitting method and device | |
WO2016090978A1 (en) | Traffic switching method and device | |
CN107852371A (en) | Data packet network | |
US20200059827A1 (en) | Message Cache Management in a Mesh Network | |
US10833972B2 (en) | Automatically selecting an optimized communication channel for communications with a deflect in an overlay network | |
CN103974339B (en) | A kind of method and apparatus of data buffer storage | |
US9059968B2 (en) | Stateless transmission control protocol rendezvous solution for border gateway function | |
CN108737273A (en) | A kind of message processing method and device | |
CN108377579A (en) | Control method, device, terminal and the storage medium of wireless heterogeneous networks connection | |
CN107852372A (en) | Data packet network | |
CN108512833A (en) | A kind of security from attacks method and device | |
CN106605398A (en) | Unique connection identifier | |
WO2015096734A1 (en) | Downlink transmission method for service data, and packet data gateway | |
Eklund et al. | Efficient scheduling to reduce latency for signaling traffic using CMT-SCTP | |
CN105991629B (en) | TCP connection method for building up and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170711 |
|
WD01 | Invention patent application deemed withdrawn after publication |