CN103002518A - Method, terminal and system for link parameter auto-negotiation based on HDLC (high-level data link control) protocol - Google Patents

Method, terminal and system for link parameter auto-negotiation based on HDLC (high-level data link control) protocol Download PDF

Info

Publication number
CN103002518A
CN103002518A CN2011102762260A CN201110276226A CN103002518A CN 103002518 A CN103002518 A CN 103002518A CN 2011102762260 A CN2011102762260 A CN 2011102762260A CN 201110276226 A CN201110276226 A CN 201110276226A CN 103002518 A CN103002518 A CN 103002518A
Authority
CN
China
Prior art keywords
frame
link
main side
parameter
described main
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
Application number
CN2011102762260A
Other languages
Chinese (zh)
Other versions
CN103002518B (en
Inventor
乾春燕
代言非
陈潇
陈晓萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANDONG BITTEL INTELLIGENT TECHNOLOGY CO., LTD.
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201110276226.0A priority Critical patent/CN103002518B/en
Priority to PCT/CN2012/073260 priority patent/WO2012155703A1/en
Publication of CN103002518A publication Critical patent/CN103002518A/en
Application granted granted Critical
Publication of CN103002518B publication Critical patent/CN103002518B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/324Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the data link layer [OSI layer 2], e.g. HDLC

Abstract

The invention relates to a method, a terminal and a system for link parameter auto-negotiation based on an HDLC (high-level data link control) protocol. The method includes: a slave end sends an SUBME frame to a master end; the master end receives the SUBME frame, negotiates link parameters with the slave end according to the frame and returns the link parameters to the slave end through a UA frame; the slave end receives the UA frame, performs link parameter negotiation with the master end according to the UA frame, establishes link connection with the master end and sends the link parameters to the master end through a UE frame; and the master end receives the UE frame and establishes link connection with the slave end. Mutual entity symmetry is achieved by the aid of a three-handshaking mechanism established and linked by the HDLC protocol and by means of negotiating the link parameters by both communication sides and determining ARQ (automatic repeat request) types and size of a window used during data transmission. During normal working, optional parameters of a link are negotiated through unnumbered frames, so that link parameter auto-negotiation of the HDLC protocol is achieved, reliability and high efficiency of link transmission are improved, and implementation is simple.

Description

Link parameter auto-negotiation method, terminal and system based on the HDLC agreement
Technical field
The present invention relates to wireless communication technology field, relate in particular to a kind of link parameter auto-negotiation method, terminal and system based on HDLC agreement (High Level Data Link Control protocol, High level data link control).
Background technology
In wireless communication system, how information being sent to the destination from information source accurately is to be primary and foremost purpose, and wherein, data transfer is realized by link layer protocol.
The HDLC agreement is a kind of data link layer protocol, and it has realized the transparent transmission of data message, adopts full-duplex communication when communication, has higher data link efficiency of transmission.Its all frames all adopt CRC check, and information frame is numbered, and can prevent that leak-stopping is received or repetition, and transmission reliability is high, and transmission control function is separated with processing capacity, has larger flexibility and more perfect control function.
Therefore based on These characteristics, HDLC can guarantee that data have the transmission of affirmation according to the order of sequence between the bilateral agreement entity, is commonly used in the communication system link layer protocol of transfer of data between the different veneers.
The frame format of HDLC agreement is as shown in table 1 below:
1byte 1-2bytes 1byte Variable≥0 2bytes 1byte
01111110 Address field Control domain Information field CRC 01111110
Table 1
Wherein, control domain is the key of agreement normal operation, and the implication of the every bit representative of control field is as shown in table 2 below:
Figure BDA0000091986690000011
Table 2
In the above-mentioned table 2, the number of frames that N (S) expression is being transmitted;
N (R) expression is confirmed the other side N (R) the I frame before that receives;
P/F represents poll/stop bit, and during the main frame transmission, this position is 1 expression poll, allows the slave transmission; During the slave transmission, this is the last frame that 1 expression is replied;
S represents the monitoring function position, 00-RR order, expression receive ready; The 01-RNR order, the expression Receive Not Ready;
M represents the debugging functions position;
The U frame is unnumbered frames, and unnumbered frames is not gained the name because not comprising numbering N (S) and N (R) in its control field, is called for short the U frame.The U frame is used for providing foundation, dismounting and the various control function to link, and these control functions are defined by 5 M positions (also claiming to revise the position).
The unnumbered frames type that relates in the process setting up of HDLC link is as follows:
SABME order: M=01111 is as setting up the data link order;
UA replys: M=01100 is used for replying without numbering of SABME order;
UE replys: M=01200 is used for replying the UA frame.
The workflow of HDLC agreement mainly is comprised of three parts: the maintenance of the foundation of HDLC link, the transmitting-receiving of data, link.
The process of setting up of HDLC link adopts three-way handshake mechanism commonly used in the link protocol, referring to shown in Figure 1, when initial, A end (from end) is in and sends the SABME frame state, sending out the request of SABME frame to B end (main side) connects, and enter the state of waiting for the UA frame, after the SABME frame is received in the main side, Xiang Congduan sends the UA frame, and enters the state of waiting for the UE frame, receive the UA frame from end after, send out the UE frame to the main side, and entering the connection established state, the main side enters the connection established state after receiving the UE frame, finishes three-way handshake and connects.
Because the characteristic of communication system in HDLC data transfer process, may cause error in data and lose, so communication system need to be carried out mistake and flow control to data.Wherein, flow control protocol is divided into stop-and-wait protocol and sliding window protocol.The error control agreement mainly is to utilize CRC (Cyclic Redundancy Check, cyclic redundancy check (CRC) code) equal difference false retrieval survey technology is automatically to lost frames and erroneous frame request repeat, be called again ARQ (Automatic Repeat reQuest, HARQ) technology, in conjunction with flow control protocol, formed three kinds of data link layer retransmission techniques commonly used: stop waiting ARQ, retreating N frame ARQ, selectivity ARQ, these three kinds of data link layer retransmission techniques are all based on sliding window protocol.Be respectively from high to low according to the transmission of data efficient: selectivity ARQ, retreat N frame ARQ, stop and wait ARQ.
In communication process, because the both sides of communication are two independently entities, although all adopt the HDLC agreement, can be because the asymmetry of two ends protocol entity cause link occurs fault, the below describes with instantiation:
1, two ends adopt respectively different ARQ agreements to cause data transmission exception:
Referring to shown in Figure 2, the A end adopts Sr-ARQ, and the B end adopts and retreats N frame ARQ, in the case, B end expectation A end is retransmitted 1 to 3 all frames, but the A end only can be retransmitted the 1st frame, until during the overtime affirmation of not receiving the 2nd frame and the 3rd frame of A end, the A end just can be retransmitted the 3rd frame.Thus, caused the inefficiency of the transmission of data.
2, identical ARQ agreement is adopted at two ends, but may cause data transmission exception because both sides' window is inconsistent:
Referring to shown in Figure 3, the send window of supposing the A end is M, the receive window of B end is N, M<N wherein, like this, the A end is after the frame that sends sequence number to the B end as M-1, ensuing frame number can be since 1, and because the receive window of B end is N, so the sequence number of the frame received of B end expectation then is N, both sides can not be the frame that the expectation of B end receives owing to the frame of A end transmission like this, and cause that data transfer is unusual.
Above-mentioned two kinds of situations that cause data transmission exception, basic reason is the asymmetry of two ends protocol entity, cause a side to the other side's information errors understanding, in the first situation, the A end thinks that B holds the support selective retransmission, and in fact is not, in the second situation, the B end thinks that the send window of A end is N, and in fact neither be like this.
Summary of the invention
Main purpose of the present invention is to provide a kind of link parameter auto-negotiation method, terminal and system based on the HDLC agreement, is intended to improve reliability and the high efficiency of link transmission.
In order to achieve the above object, the present invention proposes a kind of link parameter auto-negotiation method based on High-Level Data Link Control HDLC agreement, comprising:
Send the request of SUBME frame to the main side from end and set up link connection;
Receive the UA frame that described main side is returned according to described SUBME frame;
Carry out link parameter negotiation, the link connection between foundation and the described main side according to described UA frame and described main side.
Preferably, describedly carry out link parameter from end according to UA frame and described main side and consult, set up and the link-attached step of described main side comprises:
From end described UA frame is resolved; And according to analysis result judge described main side whether support parameter consult, if support, then
From described UA frame, obtain the link parameter of described main side, and, determine from the link parameter of end that described link parameter from end is consistent with the link parameter of described main side according to the link parameter of described main side;
Described link parameter from end is formed the UE frame be sent to described main side, set up described link connection between end and described main side.
Preferably, the method also comprises: when support parameter is consulted in described main side,, and adopt the link parameter of acquiescence to form the UE frame to be sent to described main side, to set up described link connection between end and described main side according to the identification of UA frame from end.
Preferably, described SUBME frame, UA frame and UE frame comprise HARQ ARQ type, send window and the receive window size from holding from the end support at least.
Preferably, the method also comprises:
When normal operation, receive that from end the U frame of main side is not the link setup frame, describedly from described U frame, obtain the link parameter of described main side from end;
When the link parameter of described main side does not contain the link setup parameter, determine described link parameter from end;
When described U frame is command frame, described being encapsulated in from the link parameter of holding is sent to described main side the response frame.
The present invention also proposes a kind of link parameter auto-negotiation terminal based on the HDLC agreement, comprising:
Sending module is used for sending the request of SUBME frame to the main side and sets up link connection;
Receiver module is used for receiving the UA frame that described main side is returned according to described SUBME frame;
The link negotiation module is used for carrying out the link parameter negotiation according to described UA frame and described main side, sets up the link connection between described terminal and the described main side.
Preferably, described link negotiation module comprises:
The analysis judgment unit is used for described UA frame is resolved; And according to analysis result judge described main side whether support parameter consult;
Negotiation element, be used for when the analysis judgment unit judges goes out the support parameter negotiation of described main side, from described UA frame, obtaining the link parameter of described main side, and according to the link parameter of described main side, determine the link parameter of local terminal, the link parameter of local terminal is consistent with the link parameter of described main side;
Frame structure transmitting element is used for the link parameter composition UE frame of local terminal is sent to described main side, sets up the link connection between local terminal and the described main side.
Preferably, described frame structure transmitting element also is used for adopting the link parameter composition UE frame of acquiescence to be sent to described main side when support parameter is consulted in described main side, sets up the link connection between local terminal and the described main side.
Preferably, described link negotiation module also is used for, and when local terminal receives U frame that the main side sends for the link setup frame, resolves from described U frame and obtains the link parameter of described main side; When the link parameter of described main side does not contain the link setup parameter, determine the link parameter of local terminal;
Described sending module also is used for when described U frame is command frame, the link parameter of described local terminal is encapsulated in is sent to described main side in the response frame.
The present invention also proposes a kind of link parameter auto-negotiation system based on the HDLC agreement, comprises that the main side reaches from end, wherein:
Described main side is used for receiving the described SUBME frame that sends from end when link setup; According to described SUBME frame and describedly carry out link parameter from end and consult, determine the link parameter of main side, and return the UA frame to described from end, receives described UE frame from end, set up and described from the link connection between holding; In when normal operation, be used for receiving the U frame from end, when the U frame is non-link setup frame, and does not comprise the ARQ type of link setup, during from the send window of end and receive window size, and consult link parameter from end.
Described from end, when link setup, be used for sending the request of SUBME frame to described main side and set up link connection; Receive the UA frame that described main side is returned according to described SUBME frame; Carry out the link parameter negotiation according to described UA frame and described main side, determine from the link parameter of end the link connection between foundation and the described main side; In when normal operation, be used for receiving the U frame of main side, when the U frame is non-link setup frame, and when not comprising the send window of ARQ type, main side of link setup and receive window size, consult link parameter with the main side.Preferably, described is aforesaid terminal from end.
Link parameter auto-negotiation method, terminal and the system of a kind of HDLC agreement that the present invention proposes, the three-way handshake mechanism of the link setup by the HDLC agreement, communicating pair is consulted the link setup parameter, and the ARQ type and the window size that use during the specified data transmission reach the symmetry of both sides' entity; When link setup, also can consult other optional link parameter, simultaneously, in the HDLC course of normal operation, can hold consultation to the optional parameters of link by unnumbered frames, thus, realize that the ARQ agreement of HDLC agreement is selected automatically, reliability and the high efficiency of link transmission have been improved, and the present invention continued to use under the HDLC standard protocol specifies as realizing the already present general utility functions module of normal data communication, only needs slightly modified, realizes simple.
Description of drawings
Fig. 1 is HDLC link establishment journey schematic diagram in the prior art;
Fig. 2 is that communicating pair adopts different ARQ agreements to cause the schematic diagram of data transmission exception in the prior art;
Fig. 3 is the inconsistent schematic diagram that causes data transmission exception of the window of communicating pair in the prior art;
Fig. 4 is the schematic flow sheet that the present invention is based on link parameter auto-negotiation method one embodiment of HDLC agreement;
Fig. 5 is the frame format schematic diagram that the present invention is based on unnumbered frames among link parameter auto-negotiation method one embodiment of HDLC agreement;
Fig. 6 the present invention is based among link parameter auto-negotiation method one embodiment of HDLC agreement to carry out link parameter according to UA frame and main side and consult, set up and the main side between link-attached schematic flow sheet;
Fig. 7 is the schematic flow sheet that the present invention is based on another embodiment of link parameter auto-negotiation method of HDLC agreement;
Fig. 8 is the link parameter auto-negotiation terminal one example structure schematic diagram that the present invention is based on the HDLC agreement;
Fig. 9 is the structural representation that the present invention is based on the link parameter auto-negotiation terminal one embodiment link negotiation module of HDLC agreement;
Figure 10 is the structural representation that the present invention is based on one embodiment of link parameter auto-negotiation system of HDLC agreement.
In order to make technical scheme of the present invention clearer, clear, be described in further detail below in conjunction with accompanying drawing.
Embodiment
Solution for embodiment of the invention mainly is: the three-way handshake mechanism of the link setup by the HDLC agreement, communicating pair is consulted the link setup parameter,, the ARQ type and the window size that use during the specified data transmission, reach the symmetry of both sides' entity, to improve reliability and the high efficiency of link transmission.
As shown in Figure 4, one embodiment of the invention proposes a kind of link parameter auto-negotiation method based on the HDLC agreement, comprising:
Step S101 sends the request of SUBME frame from end and sets up link connection to the main side;
Wherein, the SUBME frame comprises from the link parameter of end, link parameter is divided into the link setup parameter, and optional parameters, wherein the link setup parameter comprises from type, the window size of the ARQ of end support, above parameter must be carried, and other parameters such as timer duration, expired times thresholding etc. are optional parameters.
The frame format of the unnumbered frames of HDLC agreement specified standard is as shown in table 3 below:
Length 1byte 1-2bytes 1byte 2bytes 1byte
Implication Flag Address field Control word CRC Flag
Table 3
The frame format of the unnumbered frames that is used for consultation parameter of embodiment of the invention defined is as shown in table 4 below:
Length 1byte 1-2bytes 1byte Determine according to frame type 2bytes 1byte
Implication Flag Address field Control word The link additional parameter CRC Flag
Table 4
In the above-mentioned table 4, newly-increased agreement additional parameter field is used for both sides and determines the ARQ type of separately use and the size of window, also can be used for other parameters of agreement protocol.
The frame format of the unnumbered frames of present embodiment regulation is specifically referring to shown in Figure 5.
Wherein the implication of each field is as shown in table 5 below:
Need to prove that the length sum of all parameters should not surpass the maximum length that WLen can stipulate in the above-mentioned table 5.
Step S102 receives the UA frame that the main side is returned according to the SUBME frame;
The main side is after receiving the SUBME frame of sending from end, this SUBME frame is resolved, judge according to analysis result whether support parameter is consulted from holding, if do not support, then adopt the link parameter of acquiescence, the link parameter composition UA frame of this acquiescence is sent to from end, comprise final link parameter type and the value of using in main side in this UA frame.
If the main side is judged from the end support parameter according to analysis result and is consulted, then from the SUBME frame that receives, obtain from the link parameter of end, this link parameter comprises ARQ type, send window and the receive window size of namely supporting from end the opposite end.Afterwards, the main side obtains local terminal according to the link parameter from end and finally adopts link parameter, comprise the ARQ type of final use, receive window and the send window of local terminal, it determines that method is: will compare with local terminal from ARQ type, send window and the receive window size that end is supported, efficiency according to the ARQ parameter puts in order, select both sides all to support and the most effective last ARQ type that adopts of ARQ type conduct, during the value of the receive window of main side and the size of send window, get the smaller value in both sides' window size value.If necessary, also can determine other optional parameters.
Then the main side link parameter composition UA frame that the local terminal that obtains is final sends to from end.Consult by carrying out link parameter from end according to this UA frame.
Step S103 carries out link parameter negotiation, the link connection between foundation and the main side from end according to UA frame and main side.
After receiving the UA frame of sending the main side from termination, the UA frame is resolved, judge according to analysis result whether support parameter is consulted in the main side, if consult main side not support parameter, then adopt the link parameter of acquiescence from end, the link parameter composition UE frame of this acquiescence is sent to the main side, comprise in this UE frame from holding link parameter type and the value of final employing.
If judge main side support parameter negotiation from end by resolving the UA frame, then from the UA frame, obtain the link parameter of main side from end, comprise ARQ type, send window and the receive window size finally taked the main side, and other optional parameters.
Then, from holding the link parameter of determining local terminal, comprise the ARQ type of final employing, receive window and the send window of local terminal, it determines that method is: the ARQ type that adopts from end is that the main side is consistent with the opposite end, from the receive window of end and the send window in the same size of main side, from the send window size of end and the receive window in the same size of main side.If necessary, also can determine other optional parameters.
Then, the link parameter composition UE frame that will finally choose from end sends to the main side, comprises in this UE frame from holding link parameter type and the value of final employing, finishes simultaneously the foundation negotiation flow process of link from end.Resolve this UE frame after receiving the UE frame of sending from end the main side, confirms that again the link parameter that both sides use is consistent, and then flow process is consulted in the main side foundation of finishing link.
Particularly, as shown in Figure 6, above-mentioned steps S103 comprises:
Step S1031 resolves the UA frame;
Step S1032 judges that according to analysis result whether support parameter is consulted in the main side, if support, then enters step S1033; Otherwise, enter step S1035;
Step S1033 obtains the link parameter of main side from the UA frame, and according to the link parameter of main side, determines from the link parameter of end, and is consistent with the link parameter of main side from the link parameter of end;
Step S1034 will form the UE frame and be sent to the main side from the link parameter of end, set up from the link connection between end and the main side.
Step S1035 adopts the link parameter composition UE frame of acquiescence to be sent to the main side, sets up from the link connection between end and the main side.The below is elaborated to the present embodiment technical scheme with instantiation.
Suppose that A is the main side, support the ARQ selection mode, the ARQ mode of acquiescence is for retreating N frame ARQ type, and the sending and receiving window size is 4, also supports in addition Sr-ARQ, and reception and send window size under this Sr-ARQ type are 25.The B end is supported the ARQ selection mode for from end, only supports to retreat N frame ARQ type, and the sending and receiving window size is 5, optional parameters is not held consultation.
It is as follows that both sides carry out the process that self adaptation consults to ARQ type and window size:
Step 1, the B end sends the SABME frame to the A end and initiates the link setup flow process, comprises ARQ and the window information of B end in this SABME frame, and the B end supports ARQ to select, and can support to retreat N frame ARQ, and the send window size is 5, and the receive window size is 5.
Step 2, the A end is received the SABME frame of B end, and this SABME frame is resolved, obtain ARQ type and the window size of B end, and compare with the A end, side a and b all supports to retreat N frame ARQ, and the A end is supported Sr-ARQ, but the B end does not support that therefore selection retreats N frame ARQ type.Window size is got the smaller value in both sides' window size value, is 4.
Step 3, the ARQ type that the A end will finally be determined: retreat N frame ARQ, window size: reception and send window are 4, are encapsulated in the UA frame, send to the B end.
Step 4, B end receive after the UA frame, and what get access to that the A end adopts is to retreat N frame formula ARQ, and send window and receive window be 4, and the sending and receiving window value of then adjusting local terminal is 4.
Step 5, the ARQ type that the B end will finally adopt: retreat N frame ARQ, window size: reception and send window are 4, are encapsulated in the UE frame, send to the B end, and the B end is finished the flow process of link establishment simultaneously.
Step 6, A holds the UE frame of receiving the B end, and the UE frame is resolved, and obtain the final ARQ type that adopts of B end: retreat N frame ARQ, window size: reception and send window are 4, confirm that further both sides' parameter is consistent, can communicate.So far, the A end is finished the flow process of link establishment.
The three-way handshake mechanism of the link setup of present embodiment by the HDLC agreement, communicating pair is consulted the link setup parameter, and the ARQ type and the window size that use during the specified data transmission reach the symmetry of both sides' entity; When link setup, also can consult other optional link parameter, thus, realize that the ARQ agreement of HDLC agreement is selected automatically, improve reliability and the high efficiency of link transmission.
As shown in Figure 7, another embodiment of the present invention proposes a kind of link parameter auto-negotiation method based on the HDLC agreement, comprising:
Step S201 judges from termination and receives whether the U frame that the main side sends is the link setup frame; If, then enter step S207, otherwise, step S202 entered;
Step S202 obtains the link parameter of main side from the U frame;
Step S203 judges whether the link parameter of main side comprises the link setup parameter; If, process ends then; Otherwise enter step S204;
Step S204 determines from the link parameter of end; Enter step S205;
Step S205 judges that the U frame is command frame or response frame; If command frame then enters step S206; Otherwise, process ends.
Step S206 will be encapsulated in from the link parameter of end and be sent to the main side the response frame.
Step S207 enters link setup and consults flow process.
Wherein, link setup is consulted flow process and be please refer to that step S101 is not described further at this to step S103 in above-described embodiment.
The difference of present embodiment and above-described embodiment is that above-described embodiment is the parameter negotiation flow process based on the link setup process of HDLC agreement, and present embodiment is the parameter negotiation flow process in the HDLC course of normal operation.
As mentioned above, in the HDLC course of normal operation, can hold consultation to the optional parameters of link by unnumbered frames (U frame).
Take from distolateral as example, after receiving that from termination the opposite end is the U frame of main side transmission, at first this U frame is resolved from end, judge that whether it is the link setup frame, if so, then walks the negotiation flow process of link setup; Otherwise, from the link parameter of end according to the content obtaining main side of U frame, whether the link parameter of judging the main side comprises the mandatory parameter (ARQ type and reception and send window size) in the link setup parameter, if the link parameter of main side includes above-mentioned mandatory parameter, then from end refusal is carried out link parameter and consult.
If do not comprise above-mentioned mandatory parameter in the link parameter of main side, then will determine the link parameter that local terminal adopts from end.
Simultaneously, judge that from end the U frame that send the main side is command frame or response frame, if response frame then finishes link parameter and consults flow process; Otherwise the link parameter that local terminal is adopted is encapsulated in the U frame of response frame, sends to the main side, finishes in the course of normal operation negotiation flow process of optional link parameter.
Present embodiment is in the HDLC course of normal operation, by unnumbered frames the optional parameters of link is held consultation, and has improved reliability and the high efficiency of link transmission.
As shown in Figure 8, one embodiment of the invention proposes a kind of link parameter auto-negotiation terminal based on the HDLC agreement, comprising: sending module 801, receiver module 802 and link negotiation module 803, wherein:
Sending module 801 is used for sending the request of SUBME frame to the main side and sets up link connection;
Receiver module 802 is used for receiving the UA frame that the main side is returned according to the SUBME frame;
Link negotiation module 803 is used for carrying out the link parameter negotiation according to content and the main side of UA frame, sets up the link connection between local terminal and the main side.
The present embodiment terminal be in the HDLC agreement in the communicating pair from the end, wherein, the SUBME frame comprises that link parameter is divided into the link setup parameter from the link parameter of end, and optional parameters, wherein the link setup parameter comprises: from ARQ type and send window and the receive window size from holding of end support.Above parameter must be carried, and other parameters such as timer duration, expired times thresholding etc. are optional parameters.
The frame format of the unnumbered frames of HDLC agreement specified standard is as above shown in the table 3:
The frame format of the unnumbered frames that is used for consultation parameter of embodiment of the invention defined is as above shown in the table 4:
In the above-mentioned table 4, newly-increased agreement additional parameter field is used for both sides and determines the ARQ type of separately use and the size of window, also can be used for other parameters of agreement protocol.
The frame format of the unnumbered frames of present embodiment regulation is specifically referring to shown in Figure 5.
Wherein the implication of each field is as above shown in the table 5:
Need to prove that the length sum of all parameters should not surpass the maximum length that WLen can stipulate in the above-mentioned table 5.
The receiver module of main side is after receiving the SUBME frame of sending from end, parsing module by the main side is resolved this SUBME frame, judge according to analysis result whether support parameter is consulted from holding, if do not support, then adopt the link parameter of acquiescence, the link parameter composition UA frame of this acquiescence is sent to from end by sending module initiatively, comprise final link parameter type and the value of using in main side in this UA frame.
If the main side is judged from the end support parameter according to analysis result and is consulted, then from the SUBME frame that receives, obtain from the link parameter of end, this link parameter comprises ARQ type, send window and the receive window size of namely supporting from end the opposite end.Afterwards, the main side obtains local terminal according to the link parameter from end and finally adopts link parameter, comprise the ARQ type of final use, receive window and the send window of local terminal, it determines that method is: will compare with local terminal from ARQ type, send window and the receive window size that end is supported, efficiency according to the ARQ parameter puts in order, select both sides all to support and the most effective last ARQ type that adopts of ARQ type conduct, during the value of the receive window of main side and the size of send window, get the smaller value in both sides' window size value.If necessary, also can determine other optional parameters.
Then the main side link parameter composition UA frame that the local terminal that obtains is final sends to from end.Consult by carrying out link parameter from the link negotiation module 803 of end according to this UA frame.
After receiving the UA frame of sending the main side from termination, the UA frame is resolved, judge according to analysis result whether support parameter is consulted in the main side, if consult main side not support parameter, then adopt the link parameter of acquiescence from end, and the link parameter that will give tacit consent to forms the UE frame and sends to the main side, comprises in this UE frame from holding link parameter type and the value of final employing.
If judge main side support parameter negotiation from end by resolving the UA frame, then from the UA frame, obtain the link parameter of main side from end, comprise ARQ type, send window and the receive window size supported the main side, and other optional parameters.
Then, from holding the link parameter of determining local terminal, comprise the ARQ type of final employing, receive window and the send window of local terminal, it determines that method is: the ARQ type that adopts from end is that the main side is consistent with the opposite end, from the receive window of end and the send window in the same size of main side, from the send window size of end and the receive window in the same size of main side.If necessary, also can determine other optional parameters.
Then, the link parameter composition UE frame that will finally choose from end sends to the main side, comprises in this UE frame from holding link parameter type and the value of final employing, finishes simultaneously the foundation negotiation flow process of link from end.
Resolve this UE frame after receiving the UE frame of sending from end the main side, confirms that again the link parameter that both sides use is consistent, and then flow process is consulted in the main side foundation of finishing link.
Particularly, as shown in Figure 9, the link negotiation module 803 of present embodiment comprises: analysis judgment unit 8031, negotiation element 8032 and frame structure transmitting element 8033, wherein:
Analysis judgment unit 8031 is used for the UA frame is resolved; And according to analysis result judge the main side whether support parameter consult;
Negotiation element 8032, be used for when the analysis judgment unit judges goes out main side support parameter negotiation, from described UA frame, obtaining the link parameter of main side, and according to the link parameter of main side, determine the link parameter of local terminal, the link parameter of local terminal is consistent with the link parameter of main side;
Frame structure transmitting element 8033 is used for forming the UE frame from the link parameter of end and is sent to the main side, sets up from the link connection between end and the main side.
Further, frame structure transmitting element 8033 also is used for when support parameter is consulted in the main side, adopts the link parameter of acquiescence to form the UE frame and is sent to the main side, set up from hold and the main side between link connection.
Further, in the HDLC course of normal operation, above-mentioned link negotiation module 803 also is used for resolving from the U frame and obtaining the link parameter of main side when the U frame of receiving the main side transmission from termination is not the link setup frame; When the link parameter of main side does not contain the link setup parameter, determine from the link parameter of end;
Above-mentioned sending module 801 also is used for when the U frame is command frame, will be encapsulated in from the link parameter of end and be sent to the main side the response frame.
In the HDLC course of normal operation, to the negotiations process of optional link parameter be:
Take from distolateral as example, after receiving that from termination the opposite end is the U frame of main side transmission, at first this U frame is resolved from the link negotiation module 803 of end, judge that whether it is the link setup frame, if so, then walks the negotiation flow process of link setup; Otherwise, from the link parameter of end according to the content obtaining main side of U frame, whether the link parameter of judging the main side comprises the mandatory parameter (ARQ type and reception and send window size) in the link setup parameter, if the link parameter of main side includes above-mentioned mandatory parameter, then from end refusal is carried out link parameter and consult.
If do not comprise above-mentioned mandatory parameter in the link parameter of main side, then will determine the link parameter that local terminal adopts from end.
Simultaneously, judge that from end the U frame that send the main side is command frame or response frame, if response frame then finishes link parameter and consults flow process; Otherwise the link parameter that local terminal is adopted is encapsulated in the U frame of response frame, sends to the main side by sending module 801, finishes the negotiation flow process of optional link parameter in the course of normal operation.
The three-way handshake mechanism of the link setup of present embodiment by the HDLC agreement, communicating pair is consulted the link setup parameter, and the ARQ type and the window size that use during the specified data transmission reach the symmetry of both sides' entity; When link setup, also can consult other optional link parameter, simultaneously, in the HDLC course of normal operation, can hold consultation to the optional parameters of link by unnumbered frames, thus, realize that the ARQ agreement of HDLC agreement is selected automatically, reliability and the high efficiency of link transmission have been improved, and the present invention continued to use under the HDLC standard protocol specifies as realizing the already present general utility functions module of normal data communication, only needs slightly modified, realizes simple.
As shown in figure 10, one embodiment of the invention proposes a kind of link parameter auto-negotiation system based on the HDLC agreement, comprises that main side 901 reaches from holding 902, wherein:
Main side 901 is used for receiving when link setup from 902 requests that send of holding sets up link-attached SUBME frame; Determine the link parameter of main side according to the SUBME frame, and to from holding 902 to return the UA frame, and from holding 902 to carry out link parameter and consult, receive from holding the 902 UE frames that send, set up and from holding the link connection between 902;
In when normal operation, be used for receiving the U frame from end, when the U frame is non-link setup frame, and does not comprise the ARQ type of link setup, during from the send window of end and receive window size, and consult optional link parameter from end.
From holding 902 to be used for to the main side 901 and to send the requests of SUBME frame and set up link connection; Receive the UA frame that main side 901 is returned according to the SUBME frame; Carry out link parameter negotiation, the link connection between foundation and the main side 901 according to UA frame and main side 901.
In when normal operation, be used for receiving the U frame of main side, when the U frame is non-link setup frame, and when not comprising the send window of ARQ type, main side of link setup and receive window size, and consult optional link parameter with the main side.
In the present embodiment from holding 902 can be the terminal described in above-described embodiment.
Below elaborate in the link establishment process, main and slave terminal is carried out the negotiations process of link parameter:
Send the request of SUBME frame to the main side from end and set up link connection;
The main side receives the SUBME frame and carries out the link parameter negotiation according to the content of this frame and from end; Determine the link parameter of main side;
The main side returns to link parameter from end by the UA frame;
Receive the UA frame that the main side is returned from termination;
From the UA frame, obtain the link parameter of main side from end, and according to the link parameter of main side, determine from the link parameter of end,
From end the local terminal link parameter is formed the UE frame and be sent to the main side, set up from the link connection between end and the main side.
Receive from the UE frame of end the main side, sets up and the link connection from holding.
Wherein, main and slave terminal is carried out link parameter and is consulted, and sets up with link-attached process from end to comprise:
Resolve the SUBME frame of sending from end the main side; And judge according to analysis result whether support parameter is consulted from holding, if support, then obtains from the link parameter of end, finally determines the link parameter of main side from the SUBME frame; And the link parameter of main side returned to from end by the UA frame.
Then, receive from the UE frame that returns of end, set up and the link connection from holding.
In addition, when when holding support parameter to consult, the main side can be according to the identification of SAMBE frame, and adopt the link parameter of acquiescence to form the UA frame to be sent to from end, and receive from the UE frame of end, set up with from the link connection between holding.
In the present embodiment from hold 902 with main side 901 intercommunications, the link parameter negotiations process in normal workflow please refer to the various embodiments described above, is not giving unnecessary details at this.
Link parameter auto-negotiation method, terminal and the system of embodiment of the invention HDLC agreement, the three-way handshake mechanism of the link setup by the HDLC agreement, communicating pair is consulted the link setup parameter, and the ARQ type and the window size that use during the specified data transmission reach the symmetry of both sides' entity; When link setup, also can consult other optional link parameter, simultaneously, in the HDLC course of normal operation, can hold consultation to the optional parameters of link by unnumbered frames, thus, realize that the ARQ agreement of HDLC agreement is selected automatically, reliability and the high efficiency of link transmission have been improved, and the present invention continued to use under the HDLC standard protocol specifies as realizing the already present general utility functions module of normal data communication, only needs slightly modified, realizes simple.
The above only is the preferred embodiments of the present invention; be not so limit claim of the present invention; every equivalent structure or flow process conversion that utilizes specification of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical field, all in like manner be included in the scope of patent protection of the present invention.

Claims (11)

1. the link parameter auto-negotiation method based on High-Level Data Link Control HDLC agreement is characterized in that, comprising:
Send the request of SUBME frame to the main side from end and set up link connection;
Receive the UA frame that described main side is returned according to described SUBME frame;
Carry out link parameter negotiation, the link connection between foundation and the described main side according to described UA frame and described main side.
2. method according to claim 1 is characterized in that, describedly carries out link parameter from end according to UA frame and described main side and consults, and sets up and the link-attached step of described main side comprises:
From end described UA frame is resolved; And according to analysis result judge described main side whether support parameter consult, if support, then
From described UA frame, obtain the link parameter of described main side, and, determine from the link parameter of end that described link parameter from end is consistent with the link parameter of described main side according to the link parameter of described main side;
Described link parameter from end is formed the UE frame be sent to described main side, set up described link connection between end and described main side.
3. method according to claim 2, it is characterized in that, also comprise: when support parameter is consulted in described main side, identify according to the UA frame from end, and adopt the link parameter composition UE frame of acquiescence to be sent to described main side, set up described link connection between end and described main side.
4. according to claim 2 or 3 described methods, it is characterized in that described SUBME frame, UA frame and UE frame comprise the HARQ ARQ type supported from end at least, from send window and the receive window size of end.
5. method according to claim 4 is characterized in that, also comprises:
When normal operation, receive that from end the U frame of main side is not the link setup frame, describedly from described U frame, obtain the link parameter of described main side from end;
When the link parameter of described main side does not contain the link setup parameter, determine described link parameter from end;
When described U frame is command frame, described being encapsulated in from the link parameter of holding is sent to described main side the response frame.
6. the link parameter auto-negotiation terminal based on the HDLC agreement is characterized in that, comprising:
Sending module is used for sending the request of SUBME frame to the main side and sets up link connection;
Receiver module is used for receiving the UA frame that described main side is returned according to described SUBME frame;
The link negotiation module is used for carrying out the link parameter negotiation according to described UA frame and described main side, sets up the link connection between described terminal and the described main side.
7. terminal according to claim 6 is characterized in that, described link negotiation module comprises:
The analysis judgment unit is used for described UA frame is resolved; And according to analysis result judge described main side whether support parameter consult;
Negotiation element, be used for when the analysis judgment unit judges goes out the support parameter negotiation of described main side, from described UA frame, obtaining the link parameter of described main side, and according to the link parameter of described main side, determine the link parameter of local terminal, the link parameter of local terminal is consistent with the link parameter of described main side;
Frame structure transmitting element is used for the link parameter composition UE frame of local terminal is sent to described main side, sets up the link connection between local terminal and the described main side.
8. terminal according to claim 7, it is characterized in that, described frame structure transmitting element also is used for adopting the link parameter composition UE frame of acquiescence to be sent to described main side when support parameter is consulted in described main side, sets up the link connection between local terminal and the described main side.
9. according to claim 6,7 or 8 described terminals, it is characterized in that described link negotiation module also is used for, when local terminal receives U frame that the main side sends for the link setup frame, from described U frame, resolve and obtain the link parameter of described main side; When the link parameter of described main side does not contain the link setup parameter, determine the link parameter of local terminal;
Described sending module also is used for when described U frame is command frame, the link parameter of described local terminal is encapsulated in is sent to described main side in the response frame.
10. the link parameter auto-negotiation system based on the HDLC agreement is characterized in that, comprises that the main side reaches from end, wherein:
Described main side is used for receiving the described SUBME frame that sends from end when link setup; According to described SUBME frame and describedly carry out link parameter from end and consult, determine the link parameter of main side, and return the UA frame to described from end, receives described UE frame from end, set up and described from the link connection between holding; In when normal operation, be used for receiving the U frame from end, when the U frame is non-link setup frame, and does not comprise the ARQ type of link setup, during from the send window of end and receive window size, and consult link parameter from end.
Described from end, when link setup, be used for sending the request of SUBME frame to described main side and set up link connection; Receive the UA frame that described main side is returned according to described SUBME frame; Carry out the link parameter negotiation according to described UA frame and described main side, determine from the link parameter of end the link connection between foundation and the described main side; In when normal operation, be used for receiving the U frame of main side, when the U frame is non-link setup frame, and when not comprising the send window of ARQ type, main side of link setup and receive window size, consult link parameter with the main side.
11. system according to claim 10 is characterized in that, describedly comprises each described terminal the claim 6-9 from end.
CN201110276226.0A 2011-09-16 2011-09-16 Link parameter auto-negotiation method, terminal and system based on HDLC protocol Active CN103002518B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110276226.0A CN103002518B (en) 2011-09-16 2011-09-16 Link parameter auto-negotiation method, terminal and system based on HDLC protocol
PCT/CN2012/073260 WO2012155703A1 (en) 2011-09-16 2012-03-29 Link parameter autonegotiation method, terminal and system based on hdlc protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110276226.0A CN103002518B (en) 2011-09-16 2011-09-16 Link parameter auto-negotiation method, terminal and system based on HDLC protocol

Publications (2)

Publication Number Publication Date
CN103002518A true CN103002518A (en) 2013-03-27
CN103002518B CN103002518B (en) 2017-12-15

Family

ID=47176266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110276226.0A Active CN103002518B (en) 2011-09-16 2011-09-16 Link parameter auto-negotiation method, terminal and system based on HDLC protocol

Country Status (2)

Country Link
CN (1) CN103002518B (en)
WO (1) WO2012155703A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103733600A (en) * 2013-06-28 2014-04-16 华为技术有限公司 Method, node and device for establishing link
CN105897878A (en) * 2016-04-01 2016-08-24 浪潮电子信息产业股份有限公司 Data link layer initialization method and data link layer initialization device
CN109274980A (en) * 2018-09-19 2019-01-25 北京文香信息技术有限公司 A kind of data transmission method for being quickly broadcast live

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852203A (en) * 2006-02-10 2006-10-25 华为技术有限公司 Virtual-link set-up method and apparatus
US20070088863A1 (en) * 2005-09-28 2007-04-19 Mannava Phanindra K Method and system for flexible and negotiable exchange of link layer functional parameters
CN101594578A (en) * 2008-05-30 2009-12-02 深圳华为通信技术有限公司 The method for building up of direct connected link, station equipment and communication system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006012771A1 (en) * 2004-08-02 2006-02-09 Zte Corporation A multi-channel hdlc controller

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070088863A1 (en) * 2005-09-28 2007-04-19 Mannava Phanindra K Method and system for flexible and negotiable exchange of link layer functional parameters
CN1852203A (en) * 2006-02-10 2006-10-25 华为技术有限公司 Virtual-link set-up method and apparatus
CN101594578A (en) * 2008-05-30 2009-12-02 深圳华为通信技术有限公司 The method for building up of direct connected link, station equipment and communication system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103733600A (en) * 2013-06-28 2014-04-16 华为技术有限公司 Method, node and device for establishing link
WO2014205819A1 (en) * 2013-06-28 2014-12-31 华为技术有限公司 Link establishing method, node and apparatus
CN105897878A (en) * 2016-04-01 2016-08-24 浪潮电子信息产业股份有限公司 Data link layer initialization method and data link layer initialization device
CN105897878B (en) * 2016-04-01 2019-03-05 浪潮电子信息产业股份有限公司 A kind of method and device of the initialization of data link layer
CN109274980A (en) * 2018-09-19 2019-01-25 北京文香信息技术有限公司 A kind of data transmission method for being quickly broadcast live

Also Published As

Publication number Publication date
CN103002518B (en) 2017-12-15
WO2012155703A1 (en) 2012-11-22

Similar Documents

Publication Publication Date Title
RU2653284C2 (en) Structure of harq frame data and method of transmission and receiving with harq in systems using blind detection
CN103248467A (en) In-chip connection management-based RDMA communication method
CN101552785B (en) CAN bus communication method based on message mechanism used for massive data transmission
CN102090011A (en) Systems and methods for parallel communication with legacy WLAN receivers
CN107612661A (en) Data communication method and device
CN102665213A (en) Data direct connection processing method, equipment and system thereof
US8126014B2 (en) Methods and apparatus for improved decoding of hybrid automatic repeat request transmissions
US20070277073A1 (en) Communication device, communication system, method of operating a communication device and ARQ feedback message
CN105493589A (en) Paging method, network device and communication system
US8761105B2 (en) Apparatus and method for performing HARQ procedure
CN104008158A (en) Data verification method, verification device and mobile terminal
CN116015578A (en) Data transmission instruction, data transmission method, base station, terminal and storage medium
CN103002518A (en) Method, terminal and system for link parameter auto-negotiation based on HDLC (high-level data link control) protocol
CN102694790B (en) Method of converging a plurality of communication standards and packaging or signal transmission method
CN104038538A (en) Method and system for local area network host software updating
CN104769906A (en) Data transmission method, user device and proxy device
US20100136910A1 (en) Apparatus and method for device search for high-speed based bluetooth applications
CN102710666B (en) RADIUS (remote authentication dial in user service) client overtime treating method in WLAN (wireless local area network) system
CN104868981A (en) Method for processing retransmission data in HS-SCCH-less HARQ and device thereof
WO2024073983A1 (en) Methods and apparatuses for sidelink positioning
US9143391B2 (en) Method of processing management frame and related communication device
US7725804B2 (en) Error correction management based on message type determination
CN107204824B (en) Data transmission method and system for low-speed channel
CN103581124A (en) Management frame handling method and related communication device thereof
CN116614326A (en) Modbus communication method based on single-channel multi-device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20171103

Address after: 518000 Guangdong Province, Shenzhen New District of Longhua City, Dalang street, Longsheng Gold Dragon Road community e-commerce incubator exhibition Tao Commercial Plaza E block 706

Applicant after: Shenzhen step Technology Transfer Center Co., Ltd.

Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice

Applicant before: ZTE Corporation

TA01 Transfer of patent application right
CB03 Change of inventor or designer information

Inventor after: Cao Xiangui

Inventor after: Yao Zhoujun

Inventor after: Liu Guangwei

Inventor after: Li Xuezhong

Inventor after: Zhu Xianqiang

Inventor before: Qian Chunyan

Inventor before: Dai Yanfei

Inventor before: Chen Xiao

Inventor before: Chen Xiaoping

CB03 Change of inventor or designer information
TA01 Transfer of patent application right

Effective date of registration: 20171117

Address after: 276800 Shandong province Rizhao City Sunshine Road No. 1

Applicant after: SHANDONG BITTEL INTELLIGENT TECHNOLOGY CO., LTD.

Address before: 518000 Guangdong Province, Shenzhen New District of Longhua City, Dalang street, Longsheng Gold Dragon Road community e-commerce incubator exhibition Tao Commercial Plaza E block 706

Applicant before: Shenzhen step Technology Transfer Center Co., Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant