CN110049138A - A kind of equipment starting communication and data transmission method, apparatus and system - Google Patents
A kind of equipment starting communication and data transmission method, apparatus and system Download PDFInfo
- Publication number
- CN110049138A CN110049138A CN201910347362.0A CN201910347362A CN110049138A CN 110049138 A CN110049138 A CN 110049138A CN 201910347362 A CN201910347362 A CN 201910347362A CN 110049138 A CN110049138 A CN 110049138A
- Authority
- CN
- China
- Prior art keywords
- equipment
- message
- starting
- sent
- timer
- 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/30—Definitions, standards or architectural aspects of layered protocol stacks
- H04L69/32—Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
- H04L69/322—Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
- H04L69/324—Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the data link layer [OSI layer 2], e.g. HDLC
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Communication Control (AREA)
Abstract
Present disclose provides a kind of equipment starting communication and data transmission method, apparatus and system, which is used for the first equipment, comprising: receives the first message, the first message is used to detect the link state between the first equipment and the second equipment;Judge whether the first message is that the second equipment is sent;When the first message is that the second equipment is sent, the starting communication of the first equipment, and empty the message timer of the first equipment;To second the first message of device forwards, so that the starting of the second equipment communicates, and the message timer of the second equipment is emptied.By implementing the disclosure, while the first equipment starts and communicates, it empties message timer and the first message to the second equipment is forwarded to make the second equipment while communicating starting, the starting call duration time as caused by physical port starting is asynchronous eliminated between the first equipment and the second equipment is poor, so as to avoid time difference larger caused data packetloss problem.
Description
Technical field
This disclosure relates to field of communication technology, and in particular to a kind of equipment starting communication and data transmission method, device and
System.
Background technique
According to the function of communication, entire communication process can be divided into several layers, and each layer of peer protocol is under
Layer service alignment serve upper layers.Wherein data link layer provides on the basis of physical layer is provided and serviced to network layer transparent
And reliable data transport service.The agreement of data link layer can be divided into two classes: character-oriented agreement and Bit Oriented
Agreement.Wherein HDLC (High-level DataLink Control, High-Level Data Link Control) is that the communications field shows rank
The very widely used data link layer protocol of section.
Currently, to realize that data are transmitted between the both ends in a HDLC data link by taking HDLC protocol as an example, need first
It will be after the starting of the physical port at the two ends, after HDLC negotiates, so that the link layer protocol starting at two ends, Jin Ershi
Data transmitting between the two existing ends, still, since there are the regular hour is poor, this is resulted in for physical port starting between different ends
After HDLC negotiates, when link layer protocols starting at two ends, can also inherit this time difference, when forwarding cause to need it is tight
Lattice just start forwarding data packets after agreement starting, then the time difference that agreement starts between both ends will cause asking for data packetloss
Topic.
Summary of the invention
In view of this, the embodiment of the present disclosure provides a kind of equipment starting communication and data transmission method, apparatus and system,
To overcome two equipment room time differences as existing for the starting of physical port in the prior art, still deposited after causing agreement to start
In the time difference, the problem of data packetloss is caused within the time difference.
According in a first aspect, the embodiment of the present disclosure provides a kind of equipment starting communication means, it is used for the first equipment, it is described
Method includes: to receive the first message, and first message is used to detect the link shape between first equipment and the second equipment
State;Judge whether first message is that second equipment is sent;When first message is that second equipment is sent,
The first equipment starting communication, and empty the message timer of first equipment;To described in second device forwards
One message, so that second equipment starting communication, and empty the message timer of second equipment.
Optionally, before the step of the first message of the reception further include: the physical port of first equipment starts;To
Second equipment sends the second message, and second message is used to detect the physical port state of second equipment.
Optionally, described to judge whether first message is the step of the second equipment is sent, including judge described first
Whether message has the label of the second equipment.
Optionally, second equipment is before the first message for receiving the first device forwards, further includes: described second sets
Standby physical port starting;The second message that first equipment is sent is received, second message is for detecting described second
The physical port state of equipment;First message is sent to first equipment, and first message is for detecting described the
Link state between one equipment and the second equipment.
Optionally, first message is the message with the second device flag.
According to second aspect, the embodiment of the present disclosure additionally provides a kind of data transmission method, comprising: uses first aspect institute
The method stated establishes the link connection of the first equipment Yu the second equipment;Start first equipment to be counted with second equipment
According to transmission.
According to the third aspect, the embodiment of the present disclosure additionally provides a kind of equipment starting communication device, is used for the first equipment, institute
Stating device includes: the first receiving module, and for receiving the first message of the second equipment transmission, first message is for detecting institute
State the link state between the first equipment and the second equipment;First processing module, for judging whether first message is institute
State the transmission of the second equipment;Second processing module, when first message is that second equipment is sent, the second processing mould
Block for making the starting communication of the first equipment, and empties the message timer of first equipment;First sending module, for
First message described in second device forwards, so that second equipment starting communication, and empty the report of second equipment
Literary timer.
Optionally, the equipment starts communication device further include: the 6th processing module, for making the object of first equipment
Manage port starting;Second sending module, for sending the second message to the second equipment, second message is for detecting described the
The physical port state of two equipment.
Optionally, the first processing module judges whether first message is that the second equipment is sent, including judges institute
State the label whether the first message has the second equipment.
Optionally, the equipment starts communication device further include: the 7th processing module, for making the object of second equipment
Manage port starting;Third receiving module, the second message sent for receiving first equipment, second message is for examining
Survey the physical port state of second equipment;Third sending module, for sending first message to first equipment,
First message is used to detect the link state between first equipment and the second equipment.
Optionally, first message is the message with the second device flag.
According to fourth aspect, the embodiment of the present disclosure additionally provides a kind of data transmission device, comprising: fourth processing module,
For establishing the link connection of the first equipment Yu the second equipment using device described in the third aspect;5th processing module, is used for
Start first equipment to carry out data transmission with second equipment.
According to the 5th aspect, the embodiment of the present disclosure additionally provides a kind of equipment starting communication system, comprising: the first equipment and
Second equipment, wherein second equipment is used to send the first message to first equipment, and first message is for detecting
Link state between first equipment and the second equipment;First equipment judges for receiving first message
Whether first message is that second equipment is sent, and when first message is that second equipment is sent, is made described
The starting communication of first equipment empties the message timer of first equipment, and reports to described in second device forwards first
Text;Second equipment is also used to receive first message of first device forwards, keeps the second equipment starting logical
Letter, empties the message timer of second equipment.
According to the 6th aspect, the embodiment of the present disclosure additionally provides a kind of electronic equipment, comprising: memory and processor, institute
It states and communicates with each other connection between memory and the processor, computer instruction, the processor are stored in the memory
By executing the computer instruction, thereby executing equipment described in first aspect or its any one optional embodiment
Start communication means, alternatively, executing data transmission method described in second aspect.
According to the 7th aspect, the embodiment of the present disclosure provides a kind of computer readable storage medium, described computer-readable
Storage medium stores computer instruction, and the computer instruction is for executing the computer in a first aspect, it is any
Equipment described in a kind of optional embodiment starts communication means, alternatively, executing data transmission method described in second aspect.
Disclosed technique scheme, has the advantages that
The equipment that the embodiment of the present disclosure provides starts communication means, is used for the first equipment, by receiving the first message, and sentences
Break first message whether be the second equipment send when, make the first equipment starting communication, and empty the first equipment message timing
Device so that second equipment starting communicates, and empties the report of second equipment then to second the first message of device forwards
Literary timer.To empty message timer and forward the first message to the second equipment while the first equipment starts and communicates
So that the second equipment communicates starting simultaneously, and synchronize and empty message timer, eliminates between the first equipment and the second equipment
The starting call duration time as caused by physical port starting is asynchronous is poor, so as to avoid time difference larger caused data packetloss
Problem.
The data transmission method that the embodiment of the present disclosure provides is established by using above-mentioned two kinds of equipment starting communication means
The link connection of first equipment and the second equipment, the first equipment of starting carry out data transmission with the second equipment, thus by above-mentioned
Equipment starting method eliminate between the first equipment and the second equipment as physical port starting it is asynchronous caused by starting
Call duration time is poor, so as to avoid the time difference it is larger caused by data packetloss problem, and after ensure that next timer period
The message retention time that two equipment are sent is synchronous, further ensures the synchronous communication of two equipment rooms, has ensured data transmission
Safety and reliability.
The equipment that the embodiment of the present disclosure provides starts communication system, including the first equipment and the second equipment, sets by second
It is standby to open the first equipment when the first equipment judges that first message sends for the second equipment to the first equipment the first message of transmission
Dynamic communication, empties the message timer of the first equipment, and first message is forwarded to the second equipment, so that the second equipment starts
Communication, empties the message timer of the second equipment.To eliminate between the first equipment and the second equipment due to physical port
Start it is asynchronous caused by starting call duration time it is poor, so as to avoid the time difference it is larger caused by data packetloss problem, and guarantee
The message retention time that next timer period latter two equipment is sent is synchronous, further ensures the synchronization of two equipment rooms
Communication has ensured the safety and reliability of data transmission.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of disclosure specific embodiment or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is some embodiments of the disclosure, for those of ordinary skill in the art, before not making the creative labor
It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is that a kind of equipment of the embodiment of the present disclosure starts the structural schematic diagram of communication system;
Figure 1A is to start communication interaction schematic diagram according to a kind of equipment of the embodiment of the present disclosure;
Figure 1B is to start communication interaction schematic diagram according to another equipment of the embodiment of the present disclosure;
Fig. 2 is the flow chart for starting communication means according to a kind of equipment of the embodiment of the present disclosure;
Fig. 3 is the flow chart for starting communication means according to another equipment of the embodiment of the present disclosure;
Fig. 4 is the flow chart according to a kind of data transmission method of the embodiment of the present disclosure;
Fig. 5 is that a kind of equipment of the embodiment of the present disclosure starts the structural schematic diagram of communication device;
Fig. 6 is that another equipment of the embodiment of the present disclosure starts the structural schematic diagram of communication device;
Fig. 7 is a kind of structural schematic diagram of data transmission device of the embodiment of the present disclosure;
Fig. 8 is the structural schematic diagram of a kind of electronic equipment of the embodiment of the present disclosure.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present disclosure clearer, below in conjunction with the embodiment of the present disclosure
In attached drawing, the technical solution in the embodiment of the present disclosure is clearly and completely described, it is clear that described embodiment is
Disclosure a part of the embodiment, instead of all the embodiments.Based on the embodiment in the disclosure, those skilled in the art are not having
Every other embodiment obtained under the premise of creative work is made, the range of disclosure protection is belonged to.
As long as technical characteristic involved in disclosure different embodiments disclosed below does not constitute punching each other
It is prominent to be combined with each other.
It should be noted that used data link layer protocol is HDLC association in the embodiment provided by the disclosure
View, the first equipment and the second equipment are that two equipment of data communication are carried out by HDLC protocol, and first, second is only used for
It is bright, do not indicate significance level, in practical applications, the first equipment can be interchangeable with the second equipment.
Fig. 1 shows a kind of schematic diagram of access device fault processing system according to the embodiment of the present disclosure, such as Fig. 1 institute
Show, which includes: the first equipment 401 and the second equipment 402, wherein the second equipment 402 is used to send to the first equipment 401
First message, the first message are used to detect the link state between the first equipment 401 and the second equipment 402;First equipment 401 is used
In receiving the first message, and judge whether the first message is that the second equipment 402 is sent, when the first message is that the second equipment 402 is sent out
When sending, make the starting communication of the first equipment 401, empty the message timer of the first equipment 401, and to the second equipment 402 forwarding the
One message;Second equipment 402 is also used to receive the first message of the first equipment 401 forwarding, makes the starting communication of the second equipment 402,
Empty the message timer of the second equipment 402.
Interactive process between above-mentioned first equipment 401 and the second equipment 402 is shown referring to interacting shown in Figure 1A or Figure 1B
It is intended to.In practical applications, the first above-mentioned message is Keepalive message, and Keepalive message has triggering equipment starting
The function of communication, after equipment receives accordingly Keepalive message, the starting communication of the automatic trigger equipment.Above-mentioned judgement
Whether whether the first message is that the second equipment 402 is sent, and is specifically included: judging in the Keepalive message with the second equipment
402 label illustrates that the Keepalive message is if having the label of the second equipment 402 in the Keepalive message
It needs the first equipment 401 for carrying out data communication with the second equipment 402 to send, subsequent processing can be carried out.
By the cooperative cooperating of above-mentioned each component part, the equipment that the embodiment of the present disclosure provides starts communication system, leads to
It crosses the second equipment and sends the first message to the first equipment, when the first equipment judges that first message sends for the second equipment, make the
The starting communication of one equipment, empties the message timer of the first equipment, and first message is forwarded to the second equipment, so that second
Equipment starting communication, empties the message timer of the second equipment.To eliminate between the first equipment and the second equipment due to
Starting call duration time caused by physical port starting is asynchronous is poor, asks so as to avoid time difference larger caused data packetloss
Topic, and ensure that the message retention time that latter two equipment of next timer period is sent is synchronous, further ensure that two set
Synchronous communication between standby has ensured the safety and reliability of data transmission.
Fig. 2 shows the flow charts for starting communication means according to a kind of equipment of the embodiment of the present disclosure, as shown in Fig. 2, should
Method is applied to the first equipment, specifically comprises the following steps:
Step S101: receiving the first message, and the first message is used to detect the link shape between the first equipment and the second equipment
State.In practical applications, the first above-mentioned message is Keepalive message, when the physical port starting of the second equipment, and is received
After the corresponding Keepalive message sent to the first equipment, one can be sent to the first equipment for carrying out data communication therewith
Keepalive message with the second device flag informs first the second equipment of equipment physics up, similarly, if second
Equipment sends a Keepalive message to the first equipment, then informs second the first equipment of equipment physics up.
Step S102: judge whether the first message is that the second equipment is sent.In practical applications, if first message
The label that the second equipment is had in Keepalive message then illustrates the first equipment and the equal physics up of the second equipment, and should
Keepalive message is that the first equipment for carrying out data communication with the second equipment is needed to send, and executes step S103.
Step S103: when the first message is that the second equipment is sent, the starting communication of the first equipment, and empty the first equipment
Message timer.In practical applications, if the received Keepalive message of the first equipment has the label of the second equipment,
Illustrate the first equipment and the equal physics up of the second equipment, data communication can be prepared, even if so that the first equipment starting communication first
Device protocol up, while the Keepalive message timer that message timer i.e. the first equipment for emptying the first equipment carries, with
Convenient for the later clock cycle, the period that Keepalive message is sent between the first equipment and the second equipment keeps synchronous, eliminates
Physical port starts the influence of time difference, avoids the generation of data packetloss problem.
Step S104: to second the first message of device forwards, so that the starting of the second equipment communicates, and the second equipment is emptied
Message timer.In practical applications, while the first equipment starts and communicates by above-mentioned with the second device flag
Keepalive message is forwarded to the second equipment, drives the second equipment also while agreement up, and synchronize the second equipment and empty message
Timer avoids the generation of data packetloss problem to eliminate the influence of physical port starting time difference.
S101 to step S104 through the above steps, the equipment that the embodiment of the present disclosure provides start communication means, for the
One equipment keeps the starting of the first equipment logical by receiving the first message, and when judging whether first message is that the second equipment is sent
Letter, and the message timer of the first equipment is emptied, then to second the first message of device forwards, so that the starting of the second equipment is logical
Letter, and sync message timer.To empty message timer and forward the first message while the first equipment starts and communicates
Make the second equipment to the second equipment while communicating starting, eliminate between the first equipment and the second equipment due to physical port
Start it is asynchronous caused by starting call duration time it is poor, so as to avoid the time difference it is larger caused by data packetloss problem.
As a kind of optional embodiment of the embodiment of the present disclosure, above-mentioned equipment starts communication means, as shown in Figure 1A,
Specifically further include following steps before the step of receiving the first message:
The physical port of the S105: the first equipment of step starts.In practical applications, it is only opened in the first equipment physical port
After dynamic, the Keepalive message of other equipment transmission can be just received.
Step S106: the second message is sent to the second equipment, the second message is used to detect the physical port shape of the second equipment
State.In practical applications, after some equipment physics up, if other communicated required for being not received by it are set
The Keepalive message that preparation is sent can send the second message i.e. one not to the other equipment communicated required for it immediately
Carry the Keepalive message of any information, which, which is used to inform, communicates
Other equipment, the equipment physics up, can prepare to communicate, and when other equipment are after physics up, receive this and do not carry and appoint
When the Keepalive message of what information, above-mentioned first message marked with other equipment can be sent to the equipment, is informed
Two equipment physics up of the equipment, can carry out subsequent step, if not carrying any information sending this
After Keepalive message, other equipment not yet physics up, then the message can be dropped.
S101 to step S106 through the above steps, the equipment that the embodiment of the present disclosure provides start communication means, for the
One equipment keeps the starting of the first equipment logical by receiving the first message, and when judging whether first message is that the second equipment is sent
Letter, and the message timer of the first equipment is emptied, then to second the first message of device forwards.To logical in the starting of the first equipment
While letter, empties message timer and the first message to the second equipment is forwarded to make the second equipment while communicating starting, it is synchronous
Empty the message timer of the second equipment, thus eliminate between the first equipment and the second equipment due to physical port starting not
Starting call duration time caused by synchronization is poor, so as to avoid time difference larger caused data packetloss problem.
Fig. 3 shows the flow chart for starting communication means according to another equipment of the embodiment of the present disclosure, as shown in figure 3,
This method is applied to the second equipment, specifically comprises the following steps:
Step S201: receiving the first message of the first device forwards, and the first message is set for detecting the first equipment with second
Link state between standby.In practical applications, when the second equipment receive the first device forwards with the second device flag
Keepalive message when, be immediately performed step S202.
The starting communication of the S202: the second equipment of step, and empty the message timer of the second equipment.In practical applications, exist
When second equipment receives the Keepalive message with the second device flag of the first device forwards, illustrate the first equipment with
The equal physics up of second equipment, and the first equipment has been started up the i.e. agreement up of communication when sending the Keepalive message, touches simultaneously
It sends out second equipment and also starts communication, and empty the included Keepalive message timer of the second equipment, so that it is guaranteed that first sets
Standby start simultaneously with the second equipment communicates, and carries out data transmitting between the first equipment and the second equipment at this time, avoids because of two
Time difference existing for a equipment physics up, and the problem of cause data packetloss, and the Keepalive message timing of two equipment
Device is reset simultaneously, has also further ensured two equipment within the clock cycle later, the transmission of Keepalive message is located always
In synchronous state, different bring agreement up time differences of two equipment rooms due to the physical port up time are eliminated, into one
Step prevents the generation of data packetloss.It should be noted that in practical applications, the biography of two equipment room Keepalive messages
Defeated time delay can be ignored relative to the timer period of Keepalive message, so as to think the second equipment and the
One equipment is to maintain synchronous averaging communication.
S201 to step S202 through the above steps, the equipment that the embodiment of the present disclosure provides start communication means, are used for
Second equipment, by receiving the first message of the first device forwards, so that the starting communication of the second equipment, and empty the second equipment
Message timer.To empty message timer and the first message is forwarded to set to second while the first equipment starts and communicates
It is standby to make the second equipment while communicating starting, and synchronize and empty message timer, it eliminates between the first equipment and the second equipment
As physical port starting it is asynchronous caused by starting call duration time it is poor, so as to avoid the time difference it is larger caused by data lose
Packet problem, and ensure that the message retention time that latter two equipment of next timer period is sent is synchronous, it further ensures
The synchronous communication of two equipment rooms, further avoids data packetloss problem.
As a kind of optional embodiment of the embodiment of the present disclosure, above-mentioned equipment starts communication means, as shown in Figure 1B,
Specifically further include following steps before the first message that the second equipment receives the first device forwards:
The physical port of the S203: the second equipment of step starts.In practical applications, it is only opened in the second equipment physical port
After dynamic, the Keepalive message of other equipment transmission can be just received.
Step S204: receiving the second message that the first equipment is sent, and the second message is used to detect the physics end of the second equipment
Mouth state.In practical applications, after some equipment physics up, if its communicated required for being not received by it
The Keepalive message that his equipment is sent can send the second message i.e. one to the other equipment communicated required for it immediately
A Keepalive message for not carrying any information, the Keepalive message for not carrying any information lead to therewith for informing
The other equipment of letter, the equipment physics up, can prepare to communicate.
Step S205: sending the first message to the first equipment, the first message for detect the first equipment and the second equipment it
Between link state.In practical applications, when the second equipment is after physics up, it is any to receive not carrying for the first equipment transmission
When the Keepalive message of information, above-mentioned first message for having the second device flag can be sent to the first equipment, is informed
The first equipment physics up of equipment two, can carry out subsequent step.
S201 to step S205 through the above steps, the equipment that the embodiment of the present disclosure provides start communication means, are used for
Second equipment, by receiving the first message of the first device forwards, so that the starting communication of the second equipment, and empty the second equipment
Message timer.To empty message timer and the first message is forwarded to set to second while the first equipment starts and communicates
It is standby to make the second equipment while communicating starting, and synchronize and empty message timer, it eliminates between the first equipment and the second equipment
As physical port starting it is asynchronous caused by starting call duration time it is poor, so as to avoid the time difference it is larger caused by data lose
Packet problem, and ensure that the message retention time that latter two equipment of next timer period is sent is synchronous, it further ensures
The synchronous communication of two equipment rooms, further avoids data packetloss problem.
Fig. 4 shows a kind of flow chart of data transmission method according to the embodiment of the present disclosure, as shown in figure 4, this method
Specifically comprise the following steps:
Step S301: the chain of the first equipment Yu the second equipment is established using the equipment starting communication means in above-described embodiment
Road connection.By above equipment starting method the first equipment is started simultaneously with the second equipment and communicate i.e. agreement up, and simultaneously
Respective message timer is emptied, data communication is carried out between two equipment and establishes link basis.
Step S302: the first equipment of starting carries out data transmission with the second equipment.In practical applications, the first equipment and the
Sending and receiving for data can be realized after establishing link connection in two equipment, since two equipment are to start communication simultaneously, from
And the problem of avoiding during an equipment starting communicates another equipment and not yet starts communication, sending data packetloss.
S301 to step S302 through the above steps, the data transmission method that the embodiment of the present disclosure provides, by using upper
The two kinds of equipment starting communication means stated establishes the link connection of the first equipment Yu the second equipment, and the first equipment of starting is set with second
It is standby to carry out data transmission, thus by above-mentioned equipment starting method eliminate between the first equipment and the second equipment due to object
Manage port starting it is asynchronous caused by starting call duration time it is poor, so as to avoid the time difference it is larger caused by data packetloss problem,
And ensure that the message retention time that latter two equipment of next timer period is sent is synchronous, further ensure two equipment rooms
Synchronous communication, ensured data transmission safety and reliability.
Fig. 5 shows the schematic diagram for starting communication device according to a kind of equipment of the embodiment of the present disclosure, as shown in figure 5, should
Device is used for the first equipment, specifically includes:
First receiving module 101, for receiving the first message of the second equipment transmission, the first message is set for detecting first
The standby link state between the second equipment.Detailed content referring to step S101 in embodiment of the method associated description.
First processing module 102, for judging whether the first message is that the second equipment is sent.Detailed content is referring to method reality
Apply the associated description of step S102 in example.
Second processing module 103, when the first message is that the second equipment is sent, Second processing module, for making first to set
Standby starting communication, and empty the message timer of the first equipment.Detailed content referring to step S103 in embodiment of the method correlation
Description.
First sending module 104, for being communicated so that the second equipment starts to second the first message of device forwards, and it is clear
The message timer of empty second equipment.Detailed content referring to step S104 in embodiment of the method associated description.
By the cooperative cooperating of above-mentioned each component part, the equipment that the embodiment of the present disclosure provides starts communication device, leads to
When crossing and receive the first message, and judging whether first message is that the second equipment is sent, make the starting communication of the first equipment, and empty
The message timer of first equipment, then to second the first message of device forwards.Thus while the first equipment starts and communicates,
It empties message timer and the first message to the second equipment is forwarded to make the second equipment while communicating starting, synchronize and empty second and set
Standby message timer, thus eliminate between the first equipment and the second equipment as physical port starting it is asynchronous caused by
It is poor to start call duration time, so as to avoid time difference larger caused data packetloss problem.
As a kind of optional embodiment of the embodiment of the present disclosure, above-mentioned equipment starts communication device, further includes:
6th processing module, for starting the physical port of the first equipment.Detailed content in embodiment of the method referring to walking
The associated description of rapid S105.
Second sending module, for sending the second message to the second equipment, the second message is used to detect the object of the second equipment
Manage port status.Detailed content referring to step S106 in embodiment of the method associated description.
As another optional embodiment of the embodiment of the present disclosure, the first processing in above-mentioned equipment starting communication device
Module judges whether the first message is that the second equipment is sent, including judging whether the first message has the label of the second equipment.
By the cooperative cooperating of above-mentioned each component part, the equipment that the embodiment of the present disclosure provides starts communication device, leads to
When crossing and receive the first message, and judging whether first message is that the second equipment is sent, make the starting communication of the first equipment, and empty
The message timer of first equipment, then to second the first message of device forwards.Thus while the first equipment starts and communicates,
It empties message timer and the first message to the second equipment is forwarded to make the second equipment while communicating starting, synchronize and empty second and set
Standby message timer, thus eliminate between the first equipment and the second equipment as physical port starting it is asynchronous caused by
It is poor to start call duration time, so as to avoid time difference larger caused data packetloss problem.
Fig. 6 shows the schematic diagram for starting communication device according to another equipment of the embodiment of the present disclosure, as shown in fig. 6,
The device is used for the second equipment, specifically includes:
Second receiving module 201, for receiving the first message of the first device forwards, the first message is set for detecting first
The standby link state between the second equipment.Detailed content referring to step S201 in embodiment of the method associated description.
Third processing module 202 for making the starting communication of the second equipment, and empties the message timer of the second equipment.In detail
Thin content referring to step S202 in embodiment of the method associated description.
By the cooperative cooperating of above-mentioned each component part, the equipment that the embodiment of the present disclosure provides starts communication device, leads to
The first message for receiving the first device forwards is crossed, so that the starting communication of the second equipment, and empty the message timer of the second equipment.
To empty message timer and the first message to the second equipment is forwarded to make second to set while the first equipment starts and communicates
It is standby to communicate starting simultaneously, and synchronize and empty message timer, eliminate between the first equipment and the second equipment due to physics end
Starting call duration time caused by mouth starting is asynchronous is poor, so as to avoid time difference larger caused data packetloss problem, and protects
The message retention time for having demonstrate,proved the transmission of latter two equipment of next timer period is synchronous, further ensures the same of two equipment rooms
Step communication, further avoids data packetloss problem.
As a kind of optional embodiment of the embodiment of the present disclosure, above-mentioned equipment starts communication device, further includes:
7th processing module, for starting the physical port of the second equipment.Detailed content in embodiment of the method referring to walking
The associated description of rapid S203.
Third receiving module, for receiving the second message of the first equipment transmission, the second message is for detecting the second equipment
Physical port state.Detailed content referring to step S204 in embodiment of the method associated description.
Third sending module, for sending the first message to the first equipment, the first message is for detecting the first equipment and the
Link state between two equipment.Detailed content referring to step S205 in embodiment of the method associated description.
The first report as another optional embodiment of the embodiment of the present disclosure, in above-mentioned equipment starting communication device
Text is the message with the second device flag.
By the cooperative cooperating of above-mentioned each component part, the equipment that the embodiment of the present disclosure provides starts communication device, leads to
The first message for receiving the first device forwards is crossed, so that the starting communication of the second equipment, and empty the message timer of the second equipment.
To empty message timer and the first message to the second equipment is forwarded to make second to set while the first equipment starts and communicates
It is standby to communicate starting simultaneously, and synchronize and empty message timer, eliminate between the first equipment and the second equipment due to physics end
Starting call duration time caused by mouth starting is asynchronous is poor, so as to avoid time difference larger caused data packetloss problem, and protects
The message retention time for having demonstrate,proved the transmission of latter two equipment of next timer period is synchronous, further ensures the same of two equipment rooms
Step communication, further avoids data packetloss problem.
Fig. 7 shows a kind of schematic diagram of data transmission device according to the embodiment of the present disclosure, as shown in fig. 7, the device
It specifically includes:
Fourth processing module 301, for establishing the first equipment and the second equipment using above-mentioned equipment starting communication device
Link connection.Detailed content referring to step S301 in embodiment of the method associated description.
5th processing module 302 carries out data transmission for starting the first equipment with the second equipment.Detailed content is referring to side
The associated description of step S302 in method embodiment.
The data transmission device provided by the cooperative cooperating of above-mentioned each component part, the embodiment of the present disclosure, by adopting
The link connection that the first equipment Yu the second equipment are established with above-mentioned two kinds of equipment starting communication means starts the first equipment and the
Two equipment carry out data transmission, thus by above-mentioned equipment starting method eliminate between the first equipment and the second equipment by
The starting call duration time caused by physical port starting is asynchronous is poor, asks so as to avoid time difference larger caused data packetloss
Topic, and ensure that the message retention time that latter two equipment of next timer period is sent is synchronous, further ensure that two set
Synchronous communication between standby has ensured the safety and reliability of data transmission.
Fig. 8 shows a kind of electronic equipment according to the embodiment of the present disclosure, as shown in figure 8, the electronic equipment may include
Processor 901 and memory 902, wherein processor 901 can be connected with memory 902 by bus or other modes, Fig. 8
In by by bus connect for.
Processor 901 can be central processing unit (Central Processing Unit, CPU).Processor 901 may be used also
Think other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
The combination of the chips such as discrete hardware components or above-mentioned all kinds of chips.
Memory 902 is used as a kind of non-transient computer readable storage medium, can be used for storing non-transient software program, non-
Transient computer executable program and module, such as the equipment starting communication means or data transmission method in the embodiment of the present disclosure
Corresponding program instruction/module.Processor 901 is by running the non-transient software program being stored in memory 902, instruction
And module, thereby executing the various function application and data processing of processor, i.e. setting in realization above method embodiment
Standby starting communication means or data transmission method.
Memory 902 may include storing program area and storage data area, wherein storing program area can store operation system
Application program required for system, at least one function;It storage data area can the data etc. that are created of storage processor 901.In addition,
Memory 902 may include high-speed random access memory, can also include non-transient memory, and a for example, at least disk is deposited
Memory device, flush memory device or other non-transient solid-state memories.In some embodiments, it includes opposite that memory 902 is optional
In the remotely located memory of processor 901, these remote memories can pass through network connection to processor 901.Above-mentioned net
The example of network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
One or more module is stored in memory 902, and when being executed by processor 901, it is real to execute the above method
Apply equipment starting communication means or the data transmission method in example.
Above-mentioned electronic equipment detail can be corresponded to refering to associated description corresponding in above method embodiment and effect
Understood, details are not described herein again.
It is that can lead to it will be understood by those skilled in the art that realizing all or part of the process in above-described embodiment method
Computer program is crossed to instruct relevant hardware and complete, program can be stored in a computer-readable storage medium, should
Program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium can be magnetic disk, CD, read-only
It is storage memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), fast
Flash memory (Flash Memory), hard disk (Hard Disk Drive, abbreviation: HDD) or solid state hard disk (Solid-State
Drive, SSD) etc.;Storage medium can also include the combination of the memory of mentioned kind.
Although being described in conjunction with the accompanying embodiment of the disclosure, those skilled in the art can not depart from the disclosure
Spirit and scope in the case where various modifications and variations can be made, such modifications and variations are each fallen within by appended claims institute
Within the scope of restriction.
Claims (11)
1. a kind of equipment starts communication means, it to be used for the first equipment, which is characterized in that the described method includes:
The first message is received, first message is used to detect the link state between first equipment and the second equipment;
Judge whether first message is that second equipment is sent;
When first message is that second equipment is sent, the first equipment starting communication, and empty described first and set
Standby message timer;
To the first message described in second device forwards, so that second equipment starting communicates, and empties described second and set
Standby message timer.
2. equipment according to claim 1 starts communication means, which is characterized in that the step of the first message of the reception it
Before further include:
The physical port of first equipment starts;
The second message is sent to the second equipment, second message is used to detect the physical port state of second equipment.
3. equipment according to claim 1 or 2 starts communication means, which is characterized in that judgement first message
It whether is the step of the second equipment is sent, including judging whether first message has the label of the second equipment.
4. equipment according to claim 1 starts communication means, which is characterized in that second equipment is set in reception first
Before first message of standby forwarding, further includes:
The physical port of second equipment starts;
The second message that first equipment is sent is received, second message is used to detect the physical port of second equipment
State;
First message is sent to first equipment, first message is for detecting first equipment and the second equipment
Between link state.
5. equipment according to claim 4 starts communication means, which is characterized in that first message is to set with second
The message of standby label.
6. a kind of data transmission method characterized by comprising
The link connection of the first equipment Yu the second equipment is established using method described in claim 1-5;
Start first equipment to carry out data transmission with second equipment.
7. a kind of equipment starts communication device, it to be used for the first equipment, which is characterized in that described device includes:
First receiving module, for receiving the first message of the second equipment transmission, first message is for detecting described first
Link state between equipment and the second equipment;
First processing module, for judging whether first message is that second equipment is sent;
Second processing module, when first message is that second equipment is sent, the Second processing module, for making the
The starting communication of one equipment, and empty the message timer of first equipment;
First sending module, for being communicated so that second equipment starts to the first message described in second device forwards,
And empty the message timer of second equipment.
8. a kind of data transmission device characterized by comprising
Fourth processing module, for establishing the link connection of the first equipment Yu the second equipment using device as claimed in claim 7;
5th processing module carries out data transmission for starting first equipment with second equipment.
9. a kind of equipment starts communication system characterized by comprising the first equipment and the second equipment, wherein
Second equipment is used to send the first message to first equipment, and first message is set for detecting described first
The standby link state between the second equipment;
First equipment judges whether first message is the second equipment hair for receiving first message
It send, when first message is that second equipment is sent, makes the first equipment starting communication, empty first equipment
Message timer, and to the first message described in second device forwards;
Second equipment is also used to receive first message of first device forwards, keeps the second equipment starting logical
Letter, empties the message timer of second equipment.
10. a kind of electronic equipment characterized by comprising
Memory and processor communicate with each other connection, are stored in the memory between the memory and the processor
Computer instruction, the processor are described in any item thereby executing claim 1-5 by executing the computer instruction
Equipment starts communication means, alternatively, data transmission method described in perform claim requirement 6.
11. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer to refer to
It enables, the computer instruction is for making the computer thereby executing the described in any item equipment starting communications of claim 1-5
Method, alternatively, data transmission method described in perform claim requirement 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910347362.0A CN110049138B (en) | 2019-04-26 | 2019-04-26 | Method, device and system for starting communication and data transmission of equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910347362.0A CN110049138B (en) | 2019-04-26 | 2019-04-26 | Method, device and system for starting communication and data transmission of equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110049138A true CN110049138A (en) | 2019-07-23 |
CN110049138B CN110049138B (en) | 2021-09-28 |
Family
ID=67279822
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910347362.0A Active CN110049138B (en) | 2019-04-26 | 2019-04-26 | Method, device and system for starting communication and data transmission of equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110049138B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030061426A1 (en) * | 2001-09-27 | 2003-03-27 | Connor Patrick L. | Apparatus and method for packet ingress interrupt moderation |
US7403542B1 (en) * | 2002-07-19 | 2008-07-22 | Qlogic, Corporation | Method and system for processing network data packets |
CN102164056A (en) * | 2011-03-17 | 2011-08-24 | 杭州华三通信技术有限公司 | Stacked link aggregation fault detection method and stacked devices |
CN102355479A (en) * | 2011-07-19 | 2012-02-15 | 杭州华三通信技术有限公司 | Method and equipment for forwarding traffic of multi-NAT (network address translation) gateway |
CN108173757A (en) * | 2017-12-26 | 2018-06-15 | 新华三技术有限公司 | Port status setting method and device |
-
2019
- 2019-04-26 CN CN201910347362.0A patent/CN110049138B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030061426A1 (en) * | 2001-09-27 | 2003-03-27 | Connor Patrick L. | Apparatus and method for packet ingress interrupt moderation |
US7403542B1 (en) * | 2002-07-19 | 2008-07-22 | Qlogic, Corporation | Method and system for processing network data packets |
CN102164056A (en) * | 2011-03-17 | 2011-08-24 | 杭州华三通信技术有限公司 | Stacked link aggregation fault detection method and stacked devices |
CN102355479A (en) * | 2011-07-19 | 2012-02-15 | 杭州华三通信技术有限公司 | Method and equipment for forwarding traffic of multi-NAT (network address translation) gateway |
CN108173757A (en) * | 2017-12-26 | 2018-06-15 | 新华三技术有限公司 | Port status setting method and device |
Non-Patent Citations (1)
Title |
---|
朱琳等: "无线传感器网络的RPL路由协议研究", 《计算机技术与发展》 * |
Also Published As
Publication number | Publication date |
---|---|
CN110049138B (en) | 2021-09-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10833995B2 (en) | Method and apparatus for datacenter congestion control based on software defined network | |
US9197373B2 (en) | Method, apparatus, and system for retransmitting data packet in quick path interconnect system | |
CN103096271A (en) | Information pushing system and information pushing method | |
CN102111419A (en) | Message middleware-based client automatic reconnection method | |
CN102780593B (en) | Based on the method for BFD protocol detection link, device and network processing unit | |
US9456325B2 (en) | Transmission of a multimedia message doubled with the transmission of a text message | |
CN105515901A (en) | Message processing apparatus and method | |
WO2015165255A1 (en) | Data transmission method and device | |
CN107567107A (en) | A kind of method and device for transmitting data | |
CN114830699A (en) | Method for establishing ISO link and BLE equipment | |
CN103650401A (en) | Internal communication method for mobile terminal | |
CN101951327B (en) | iSCSI network system and network fault detection method | |
CN103607311B (en) | System and method for reestablishing TCP connection seamlessly | |
US9992309B2 (en) | Communication device and communication method | |
CN111818582B (en) | Data transmission method and device and electronic equipment | |
CN104468158B (en) | The method and apparatus of state advertisement between a kind of node | |
CN110049138A (en) | A kind of equipment starting communication and data transmission method, apparatus and system | |
CN108667682B (en) | Connection synchronization method, device and medium based on secure gateway deep packet detection | |
CN104270255A (en) | A module and method for communication between nodes based on LINX progress | |
KR20120042745A (en) | System and method for establishing reliable communication in a connection-less environment | |
CN105282235B (en) | A method of solution RPC upgrades unstable in double-PON port ONU | |
JP2007295482A (en) | Data transmission system | |
CN114328317B (en) | Method, device and medium for improving communication performance of storage system | |
CN113747206B (en) | Data feedback control method and system, display screen controller and display control card | |
CN114448594B (en) | Communication frequency synchronization method and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |