CN102684834B - Generic framing procedure (GFP) equipment and management information communication method thereof - Google Patents

Generic framing procedure (GFP) equipment and management information communication method thereof Download PDF

Info

Publication number
CN102684834B
CN102684834B CN201210135470.XA CN201210135470A CN102684834B CN 102684834 B CN102684834 B CN 102684834B CN 201210135470 A CN201210135470 A CN 201210135470A CN 102684834 B CN102684834 B CN 102684834B
Authority
CN
China
Prior art keywords
frame
information
gfp
equipment
information frame
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.)
Active
Application number
CN201210135470.XA
Other languages
Chinese (zh)
Other versions
CN102684834A (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.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN201210135470.XA priority Critical patent/CN102684834B/en
Publication of CN102684834A publication Critical patent/CN102684834A/en
Application granted granted Critical
Publication of CN102684834B publication Critical patent/CN102684834B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Communication Control (AREA)

Abstract

The invention discloses generic framing procedure (GFP) equipment and a management information communication method thereof. The method comprises the following steps that: when required to send management information to opposite GFP equipment which is not connected with the GFP equipment, the GFP equipment periodically sends a first information frame to the opposite GFP equipment until a second information frame which is returned by the opposite GFP equipment and contains right response information is received, and then is successfully connected with the opposite GFP equipment; when required to send the management information to the opposite GFP equipment which is connected with the GFP equipment, the GFP equipment sends a third information frame which contains the management information to the opposite GFP equipment; and when receiving the first information frame or the third information frame which is received by the opposite GFP equipment, the GFP equipment correspondingly returns the second information frame which contains the right response information or wrong response information, wherein the first information frame, the second information frame and the third information frame are payloads of a GFP service management frame and respectively carry a first frame identifier, a second frame identifier and a third frame identifier.

Description

A kind of Generic Framing Procedure equipment and management information communication means thereof
Technical field
The present invention relates to the communications field, be specifically related to a kind of Generic Framing Procedure equipment and management information communication means thereof.
Background technology
The concept of GFP (Generic Framing Procedure, Generic Framing Procedure) agreement is defined in ITU-T G.7041 standard.GFP agreement is a kind of towards connectionless new types of data link layer packaging agreement, the transmission of the various data protocols of the present and the future can be supported flexibly, for ethernet frame provides the end to end connection of simple economy, have that packaging efficiency is high, error code expansion is little, without features such as random bandwidth expansion costs, be especially applicable to the application of high-speed transmission link.
GFP traffic frame is divided into business data frame (GDFs) and service management frame (GMFs).GFP business data frame is used for service data transmission, and GFP service management frame is used for transmitting with the service signal information relevant with GFP connection management.In ITU-T G.7041 standard, the description for service management frame is less, just refer to the usage that can be used for transmitting Client Signal Fail.Support that in the communication products of GFP agreement, great majority all only support service data transmission at present, only have small part product to use GFP service management frame to transmit additional information.Such as, but these information are all very brief, the link-state information of several byte or monitor message etc.This communication mode is too simple, and shortcoming is obvious, and one is in current GFP equipment, has certain restriction (such as 64 bytes) for the length transmitting GFP service management frame.This communication mode just can not transmit overlength, a large amount of management information.Two is due to the reliable communication mechanism of neither one, so when transmission line goes wrong, when causing the management information of transmission to occur error code, existing communication mode just cannot ensure the transmitting of end-to-end management information.
In actual multiservice transport platform (MSTP) application, most equipment all supports GFP packaging technique, day by day complicated and powerful along with communications device functions end to end, uses GFP service management frame to transmit the trend that a large amount of tension management information becomes a certainty.How better use GFP service management frame, make end to end between GFP equipment, reliably can transmit a large amount of management information easily, just become a urgent and real problem.
Summary of the invention
The technical problem to be solved in the present invention how reliably to transmit a large amount of management information by the service management frame (GMF) of GFP.
In order to solve the problem, the invention provides a kind of management information communication means of Generic Framing Procedure GFP equipment, comprising:
GFP equipment is when needing to send management information to the GFP equipment of the opposite end do not connected, periodically send first information frame to the GFP equipment of described opposite end, until the GFP equipment receiving this opposite end return containing the second information frame of correct response message time, confirm to be connected with the GFP equipment of this opposite end;
GFP equipment is when needing to send management information to the GFP equipment of the opposite end connected, and three information frame of transmission containing described management information is to the GFP equipment of this opposite end;
GFP equipment is when first or the 3rd information frame that the GFP equipment receiving opposite end sends, and corresponding returning is contained correctly or the second information frame of wrong responses information;
Described first, second, third information frame is the payload of GFP service management frame, carries first, second, third frame identification respectively.
Further, described first, second, third frame identification adopts high three bit representations in the first character joint of GFP service management frame payload, and its numerical value is different.
Further, described response message adopts low six bit representations in the 3rd byte of GFP service management frame payload, and described response message comprises correct response message and wrong responses information two kinds, represents respectively by different values.
Further, described management information is carried in 4th ~ n byte in described 3rd information frame; The byte number that the payload that wherein n is GFP service management frame comprises.
Further, before the second information frame that GFP equipment sends first or the 3rd after information frame to the GFP equipment of opposite end, the GFP equipment that receives this opposite end returns, not to the GFP equipment of this opposite end send other first or the 3rd information frame.
Further, described method also comprises:
GFP equipment sends the 3rd information frame to after the GFP equipment of opposite end, if the second information frame containing wrong responses information that the GFP equipment receiving this opposite end returns or the second information frame that the GFP equipment not receiving this opposite end in the given time returns, then resend last the 3rd information frame sent to the GFP equipment of this opposite end.
Further, also comprise before resending the step of last the 3rd information frame sent described in:
Judge whether the number of times of the 3rd information frame continuous retransmission exceedes predetermined threshold, if do not exceeded, the number of times of continuous retransmission is added 1, described in carrying out, resend the step of last the 3rd information frame sent; If exceeded, confirm not to be connected with the GFP equipment of described opposite end.
Further, described 3rd information frame, according to whether burst is specifically divided into four groups, comprising: start frame, intermediate frame and end frame when single frames and multiframe transmission;
Four groups the 3rd information frame is represented respectively with four kind of the 3rd frame identification;
The 3rd information frame that described transmission contains management information comprises to the step of the GFP equipment of opposite end:
The length of the management information sent as required, judges whether burst; If management information can send with the 3rd information frame, then the frame identification of the 3rd information frame is set to the 3rd frame identification representing single frames, described management information is carried in the 3rd information frame and sends;
If the 3rd information frame sends described management information not, then described management information is carried in two or more 3rd information frame and sends; And will the frame identification of the 3rd information frame of described management be carried, according to the position of the 3rd information frame when sending described management information at place, relative set is the 3rd frame identification representing start frame, intermediate frame or end frame.
Further, described method also comprises:
When the frame identification of the 3rd information frame that GFP equipment receives is the 3rd frame identification representing start frame, the management information of carrying in each 3rd information frame from the 3rd information frame, to the 3rd information frame that frame identification is expression end frame is all carried out buffer memory, then forms complete management information.
Further, described first, second, third information frame also comprises:
Serial number; The sequence number that serial number in described first, the 3rd information frame distributes when being and sending this information frame first time; Serial number in second information frame is replied first or the 3rd serial number of information frame;
Described serial number adopts low seven bit representations in second byte of GFP service management frame payload.
Further, described first, the 3rd information frame also comprises:
Frame length; Described frame length refers in this information frame except frame identification, serial number, the length of all the other fields, adopts low six bit representations in the 3rd byte of GFP service management frame payload.
Further, described GFP equipment is when first or the 3rd information frame that the GFP equipment receiving opposite end sends, and the corresponding step returning the second information frame containing correct or wrong responses information comprises:
If described GFP equipment receives serial number in incorrect first, the 3rd information frame of type or the first, the 3rd information frame that receives and desired value does not meet, then return the second information frame containing wrong responses information; When not needing to return the second information frame containing wrong responses information, return the second information frame containing correct response message;
Described incorrect first, the 3rd information frame of type that receives refers to: receive the first information frame that sends with the GFP equipment of the opposite end of this GFP equipment connection or receive the 3rd information frame do not sent with the GFP equipment of the opposite end of this GFP equipment connection;
Described desired value refer to type that this opposite end GFP equipment that the last time receives sends correct first or the 3rd the serial number of information frame add 1.
Present invention also offers a kind of GFP equipment, comprising:
Data transmission module;
Connect initiation module, for when needing to send management information to the GFP equipment of the opposite end do not connected, periodically send first information frame to the GFP equipment of described opposite end, until the GFP equipment receiving this opposite end return containing the second information frame of correct response message time, confirm to be connected with the GFP equipment of this opposite end;
Described data transmission module is used for when needing to send management information to the GFP equipment of the opposite end connected, and three information frame of transmission containing described management information is to the GFP equipment of this opposite end;
Responder module, for when receiving first or the 3rd information frame of GFP equipment transmission of opposite end, returns the second information frame containing correct or wrong responses information;
Described first, second, third information frame is the payload of GFP service management frame, carries first, second, third frame identification respectively.
Further, described first, second, third frame identification adopts high three bit representations in the first character joint of GFP service management frame payload, and its numerical value is different.
Further, described response message adopts low six bit representations in the 3rd byte of GFP service management frame payload, and described response message comprises correct response message and wrong responses information two kinds, represents respectively by different values.
Further, described management information is carried in 4th ~ n byte in described 3rd information frame; The byte number that the payload that wherein n is GFP service management frame comprises.
Further, before the second information frame that described connection initiation module/data transmission module sends after the first/three information frame to the GFP equipment of pair of end, the GFP equipment that receives this opposite end returns, the GFP equipment not to this opposite end sends any information frame.
Further, described data transmission module is also for after transmission the 3rd information frame is to the GFP equipment of opposite end, if the second information frame containing wrong responses information that the GFP equipment receiving this opposite end returns or the second information frame that the GFP equipment not receiving this opposite end in the given time returns, then resend last the 3rd information frame sent to the GFP equipment of this opposite end.
Further, described data transmission module is also for before the 3rd information frame that once sends on resending, first judge whether the number of times of the 3rd information frame continuous retransmission exceedes predetermined threshold, if do not exceeded, the number of times of continuous retransmission is added 1, and resend the step of last the 3rd information frame sent; If exceeded, notify that described connection initiation module is not connected with the GFP equipment of described opposite end.
Further, described 3rd information frame, according to whether burst is specifically divided into four groups, comprising: start frame, intermediate frame and end frame when single frames and multiframe transmission;
Four groups the 3rd information frame is represented respectively with four kind of the 3rd frame identification;
The 3rd information frame that described data transmission module sends containing described management information refers to the GFP equipment of this opposite end:
The length of the management information that described data transmission module sends as required, judges whether burst; If management information can send with the 3rd information frame, then the frame identification of the 3rd information frame is set to the 3rd frame identification representing single frames by described data transmission module, described management information is carried in the 3rd information frame and sends;
If the 3rd information frame sends described management information not, then described management information is carried in two or more 3rd information frame and sends by described data transmission module; And will the frame identification of the 3rd information frame of described management be carried, according to the position of the 3rd information frame when sending described management information at place, relative set is the 3rd frame identification representing start frame, intermediate frame or end frame.
Further, described equipment also comprises:
Assembling module, when frame identification for the 3rd information frame received when described responder module is the 3rd frame identification representing start frame, the management information of carrying in each 3rd information frame from the 3rd information frame, to the 3rd information frame that frame identification is expression end frame is all carried out buffer memory, then forms complete management information.
Further, described first, second, third information frame also comprises:
Serial number; The sequence number that serial number in described first, the 3rd information frame distributes when being and sending this information frame first time; Serial number in second information frame is replied first or the 3rd serial number of information frame;
Described serial number adopts low seven bit representations in second byte of GFP service management frame payload.
Further, described first, the 3rd information frame also comprises:
Frame length; Described frame length refers in this information frame except frame identification, serial number, the length of all the other fields, adopts low six bit representations in the 3rd byte of GFP service management frame payload.
Further, described responder module is when first or the 3rd information frame that the GFP equipment receiving opposite end sends, and corresponding returning refers to containing the second information frame that is correct or wrong responses information:
If described responder module receives serial number in incorrect first, the 3rd information frame of type or the first, the 3rd information frame that receives and desired value does not meet, then return the second information frame containing wrong responses information; When not needing to return the second information frame containing wrong responses information, then return the second information frame containing correct response message;
Described incorrect first, the 3rd information frame of type that receives refers to: receive the first information frame that sends with the GFP equipment of the opposite end of this GFP equipment connection or receive the 3rd information frame do not sent with the GFP equipment of the opposite end of this GFP equipment connection;
Described desired value refer to type that this opposite end GFP equipment that the last time receives sends correct first or the 3rd the serial number of information frame add 1.
Technical scheme of the present invention overcomes the current defect that GFP service management frame can only be used to transmit brief management information, solve the problem that current use GFP service management frame cannot carry out end-to-end transmitting, the transmission of a large amount of management information can be supported by the service management frame (GMF) of GFP, the reliability that management information transmits can be ensured, achieve the reliable communication of a large amount of management information end to end; The present invention is that prioritization scheme supports burst and retransmission mechanism, achieves the transmission supporting overlength message, and how upper strata reliably sends without the need to being concerned about, only needs to issue the management information that will transmit, so use also very convenient.
Accompanying drawing explanation
Fig. 1 is the migration situation schematic diagram of source between each state in the example of embodiment one;
Fig. 2 is the transition process schematic diagram of source between each state in the example of embodiment one;
Fig. 3 is the schematic block diagram of the GFP equipment of embodiment two.
Embodiment
Below in conjunction with drawings and Examples, technical scheme of the present invention is described in detail.
It should be noted that, if do not conflicted, each feature in the embodiment of the present invention and embodiment can be combined with each other, all within protection scope of the present invention.
The management information communication means of embodiment one, a kind of GFP equipment, comprising:
GFP equipment is when needing to send management information to the GFP equipment of the opposite end do not connected, periodically send first information frame to the GFP equipment of described opposite end, until the GFP equipment receiving this opposite end return containing the second information frame of correct response message time, confirm to be connected with the GFP equipment of this opposite end;
GFP equipment is when needing to send management information to the GFP equipment of the opposite end connected, and three information frame of transmission containing described management information is to the GFP equipment of this opposite end;
GFP equipment is when first or the 3rd information frame that the GFP equipment receiving opposite end sends, and corresponding returning is contained correctly or the second information frame of wrong responses information;
Described first, second, third information frame is the payload of GFP service management frame, carries first, second, third frame identification respectively.
In the present embodiment, have the information frame of three types, described first information frame can be described as contact frame, can be used for protocol identification, to determine that two ends whether can proper communication; Described second information frame can be described as acknowledgement frame; Described 3rd information frame can be described as Frame, according to whether burst is specifically divided into four groups, can also comprise: start frame, intermediate frame and end frame when single frames and multiframe transmission.
In the present embodiment, when GFP equipment sends first information frame and receives second information frame containing correct response message of GFP equipment transmission of opposite end, just show to establish connection between the GFP equipment of opposite end, can management information be sent; The 3rd information frame is used to send when sending management information; In a communication process, the GFP equipment (one end of initiating communication) sending the first, the 3rd information frame is called source, and (one end of responding communication) of returning the second information frame is called egress.
Source and egress are concepts in logic, and one end of practical communication can be source and egress, and the other end of communication then can correspond to and be egress and source.
For the two ends of communication, can abstract out four basic actions, comprising:
(1) Frame or contact frame is sent to opposite end;
(2) response (frame) to Frame or contact frame receiving that opposite end sends;
(3) Frame or contact frame sent opposite end is received;
(4) response (frame) to this Frame or contact frame is sent;
Logically, (1), the action of (2) is separate with the action of (3), (4), here one end that execution (1) and (2) operates is called source, the one end performing (3) (4) is called egress.
In the present embodiment, described first, second, third frame identification can be, but not limited to adopt high three (bit7-5) in the first character of information frame (comprising first, second, third information frame, the payload of namely GFP service management frame) joint to represent; Its numerical value is different; Four groups the 3rd information frame can be represented respectively with four kind of the 3rd frame identification.
In a kind of concrete implementation, each frame identification can be, but not limited to provide as follows:
000:start, the start frame during transmission of Frame multiframe;
001:mid, the intermediate frame during transmission of Frame multiframe;
010:sigle, Frame single frame transmission;
011:end, the end frame during transmission of Frame multiframe;
100:ack, the acknowledgement frame of all frames;
111:contact, contact frame, for protocol identification.
In the present embodiment, low five (bit4 ~ bit0) in the first byte of information frame can as cookie, the persistent data safeguarded when communicating with local terminal for opposite end.Sending value is provided by user.
In the present embodiment, described first, second, third information frame can also comprise: serial number; The sequence number that serial number in described first, the 3rd information frame distributes when being and sending this information frame first time, the first, the 3rd information frame can count together, this serial number just should increase progressively when not retransmitting, sequence number when just adopting first time to send this information frame when retransmitting first or the 3rd information frame, as serial number, namely retains the serial number of this information frame first time when sending; Serial number in second information frame is replied first or the 3rd serial number of information frame, and when will return the second information frame B after such as receiving the first/three information frame A, the serial number of this second information frame B is exactly the serial number of information frame A.Described serial number can be, but not limited to adopt low seven (bit6 ~ 0) in second of described information frame byte to represent, first (bit7) in the second byte can retain.
In the present embodiment, described response message can be, but not limited to adopt low six (bit5 ~ 0) in the 3rd of described information frame the byte to represent only have the second information frame to contain response message; Described response message comprises correct response message and wrong responses information two kinds, represents respectively by different values; In a kind of concrete implementation, described response message can be, but not limited to provide as follows:
0x15: represent OK (i.e. correct response message);
0x2A: represent ERROR (i.e. wrong responses information).
In the present embodiment, described method can also comprise:
GFP equipment sends the 3rd information frame to after the GFP equipment of opposite end, if the second information frame containing wrong responses information that the GFP equipment receiving this opposite end returns or the second information frame that the GFP equipment not receiving this opposite end in the given time returns, then resend last the 3rd information frame sent to the GFP equipment of this opposite end.
Obviously, GFP equipment also carries out step above after resending the 3rd information frame.
In the present embodiment, before the second information frame containing correct response message that GFP equipment returns at the GFP equipment receiving opposite end, be periodically send first information frame, this also can be understood as:
GFP equipment sends first information frame to after the GFP equipment of opposite end, if the second information frame containing wrong responses information that the GFP equipment receiving this opposite end returns or in the scheduled time (time span in length can be " periodically send " inner cycle, the length of " scheduled time " when above judging whether repeating transmission the 3rd information frame can be equal or not etc.) in do not receive this opposite end the second information frame of returning of GFP equipment, then resend the last first information frame sent to the GFP equipment of this opposite end.
Before the second information frame that the GFP equipment that in the present embodiment, GFP equipment sends first or the 3rd after information frame to the GFP equipment of pair of end, receive this opposite end returns, not to the GFP equipment of this opposite end send other first or the 3rd information frame; If but receive that opposite end GFP equipment sends first or the 3rd information frame or equally can send the second information frame; Also can to the GFP equipment transmission first of other opposite end or the 3rd information frame.
In the present embodiment, described in resend the step of last the 3rd information frame sent before can also comprise:
Judge whether the number of times of the 3rd information frame continuous retransmission exceedes predetermined threshold, if do not exceeded, the number of times of continuous retransmission is added 1, described in carrying out, resend the step of last the 3rd information frame sent; If exceeded, confirm not to be connected with the GFP equipment of described opposite end.
The above-mentioned scheduled time and predetermined threshold can based on experience value or the setting such as theoretical value, scheduled time timing from after transmission, counting when the number of times of continuous retransmission was retransmitted from an information frame first time.
In the present embodiment, the 3rd information frame that described transmission contains described management information specifically can comprise to the step of the GFP equipment of this opposite end:
The length of the management information sent as required, judges whether burst; If management information can send with the 3rd information frame, then the frame identification of the 3rd information frame is set to the 3rd frame identification representing single frames, described management information is carried in the 3rd information frame and sends;
If the 3rd information frame sends described management information not, then described management information is carried in two or more 3rd information frame and sends; And will the frame identification of the 3rd information frame of described management be carried, according to the position of the 3rd information frame when sending described management information at place, relative set is the 3rd frame identification representing start frame, intermediate frame or end frame.
In the present embodiment, described method can also comprise:
When the frame identification of the 3rd information frame that GFP equipment receives is the 3rd frame identification representing start frame, the management information of carrying in each 3rd information frame from the 3rd information frame, to the 3rd information frame that frame identification is expression end frame is all carried out buffer memory, then forms complete management information.
In the present embodiment, described GFP equipment is when first or the 3rd information frame that the GFP equipment receiving opposite end sends, and the corresponding step returning the second information frame containing correct or wrong responses information specifically can comprise:
If described GFP equipment receives serial number in incorrect first, the 3rd information frame of type or the first, the 3rd information frame that receives and desired value does not meet, then return the second information frame containing wrong responses information; When not needing to return the second information frame containing wrong responses information, then return the second information frame containing correct response message;
Described incorrect first, the 3rd information frame of type that receives refers to: receive the first information frame that sends with the GFP equipment of the opposite end of this GFP equipment connection or receive the 3rd information frame do not sent with the GFP equipment of the opposite end of this GFP equipment connection; Described desired value refer to type that this opposite end GFP equipment that the last time receives sends correct first or the 3rd the serial number of information frame add 1.
During practical application, the reason of the second information frame sent containing wrong responses information can be caused can be not limited to above description, other reason can also be comprised.
In the present embodiment, described first, the 3rd information frame can also comprise: frame length; The frame length scope that described frame length represents is 0 ~ 55 bit, to refer in this information frame except frame identification, serial number, the length of all the other fields, can be, but not limited to adopt low six (bit5 ~ 0) in the 3rd of described information frame the byte to represent, response message in namely with the second information frame uses the bit of same position, and high two (bit7 ~ 6) in the 3rd byte can retain.
In the present embodiment, described management information is carried in 4th ~ n byte in described 3rd information frame, and that is the 4th byte is the data field of information frame to the n-th byte, needs the management information on the upper strata of transmitting just to be stored in this data field; The wherein length (byte number) of payload in the GFP service management frame supported for concrete GFP business chip of n.
In the present embodiment, described information frame can also comprise (n+1)th byte, as check field, can complete verification for information frame by this field.In actual use, because GFP service management frame has supported FCS verifying function, so this field can not use.
When there being check field, if the first or the 3rd check field mistake in information frame that GFP equipment receives, then also return the second information frame containing wrong responses information.
In an object lesson of the present embodiment, form and the definition thereof of information frame can be as shown in Table 1.
Table one, information frame formal definition table
In this example, the operate condition of source can be defined as several as follows, and in the communication process of egress, the migration situation of source between each state as shown in Figure 1, process as shown in Figure 2:
(1) NULL (contact) state
Equipment is in this state when starting most (START), represents source also not with in egress contact, now can not send Frame, but can send contact frame, just send a contact frame every some cycles; After each transmission contact frame, source is moved into WAIT state.
(2) WAIT (wait acknowledge) state
Represent that Frame or contact frame are sent, be in the state waiting for egress response, during this state, other Frames can not be sent.If have received the acknowledgement frame containing correct response message in the given time, then enter into READY state.
If contact frame is sent and response (frame) time-out waiting for contact frame or the acknowledgement frame that have received containing wrong responses information, then move back to NULL state.
If dataframe is complete, then when being in this state, need to carry out time-out count.If (number of times of same Frame time-out and wrong responses is accumulative for the number of times waiting for response (frame) time-out of Frame and the number of times that have received the acknowledgement frame containing wrong responses information, also the number of times of this Frame continuous retransmission is just equivalent to) exceed predetermined threshold, then moving back to NULL state (can be super secondary and move back to NULL state at WAIT condition adjudgement, also can be judge whether super secondary and move back to NULL state after entering RETRY state before repeating transmission, be at RETRY condition adjudgement shown in Fig. 2).If the response time-out of Frame or wrong responses (namely have received the acknowledgement frame containing wrong responses information), and the number of times (being equivalent to the number of times of this Frame continuous retransmission) of this Frame time-out and wrong responses does not exceed predetermined threshold, then enter RETRY state.
(3) RETRY (retry) state
Represent after sending Frame, receive the acknowledgement frame mistake (such as time-out, serial number not to or check field mistake etc.) of egress, or egress response represents that the information frame received is wrong (namely receiving the acknowledgement frame containing wrong responses information).Now, RETRY state is entered into.When this state, generally can resend the Frame sent last time, be sent rear state and just again change WAIT state into; Now the number of times of RETRY can add up; If find that before repeating transmission the number of times of the continuous retransmission of the Frame added up exceedes predetermined threshold (data frame re-transmission namely in Fig. 1 is super secondary), then state moves back to NULL state, now upper strata can also be notified, communication loss, namely original connection of setting up has become and has not connected.
(4) READY (being ready for sending) state
Represent that now source and egress are got in touch with, and establish connection, be in the state being ready for sending Frame.Now can need the length of the management information data of transmission according to upper strata, determine whether burst.If a Frame just can send, then the frame identification territory of this Frame will be set to 0b ' 010, if need burst, then according to being first burst, middle burst or last burst, the frame identification territory of Frame is set to 0b ' 000,0b ' 001 and 0b ' 011.Enter WAIT state after dataframe, wait for the response of egress.
The worker state machine of egress is comparatively simple, just requires to reply for the contact frame received or Frame.Generally comprise two kinds of operations: one for sending acknowledgement frame to source, represents that local terminal have received contact frame or Frame.And whether correctly to fill Acknowledge according to the contact frame received or Frame be 0x15 or 0x2a.Two for packaging according to the Frame received.When the Frame received is multi-disc, need to open up buffering for organizing bag.When the Frame received can form complete message, egress generally also needs that message is submitted to upper strata and processes.
Fig. 2 is the transmission processing flow process of one end in end-to-end communication in this example:
In the end-to-end communication of reality, as one end of communication, be source and egress, process is now more more complex with communicating of egress than pure source.In addition, when the end-to-end communication of reality, also need to consider more situation.Now can there is following treatment principle:
(1) operating state of the one end communicated can be identical with source, is divided into NULL, WAIT, RETRY and READY tetra-kinds of states, but no matter under which kind of state, can send acknowledgement frame, sends the operating state that acknowledgement frame should not have influence on local terminal;
(2), when sending, if need to send Frame and acknowledgement frame simultaneously, then preferentially acknowledgement frame is sent;
(3) when transfiniting due to expired times in RETRY state, when moving back to NULL state, usually can notify upper strata, representing that two ends of communication lose connection;
(4) frequency considering that information frame sends also is needed during practical application, can not be too frequent, otherwise the transmission of GFP business can be had influence on.
Embodiment two, a kind of GFP equipment, as shown in Figure 3, comprising: data transmission module;
Connect initiation module, for when needing to send management information to the GFP equipment of the opposite end do not connected, periodically send first information frame to the GFP equipment of described opposite end, until the GFP equipment receiving this opposite end return containing the second information frame of correct response message time, confirm to be connected with the GFP equipment of this opposite end;
Described data transmission module is used for when needing to send management information to the GFP equipment of the opposite end connected, and three information frame of transmission containing described management information is to the GFP equipment of this opposite end;
Responder module, for when receiving first or the 3rd information frame of GFP equipment transmission of opposite end, returns the second information frame containing correct or wrong responses information;
Described first, second, third information frame is the payload of GFP service management frame, carries first, second, third frame identification respectively.
Can be, but not limited to the mark of the GFP equipment of the opposite end connected with a file or table storage, the GFP equipment of opposite end for not connecting not in this file or form.
In the present embodiment, comprise the information frame of three types: described first information frame can be described as contact frame, can be used for protocol identification, to determine that two ends whether can proper communication; Described second information frame can be described as acknowledgement frame; Described 3rd information frame can be described as Frame, according to whether burst is specifically divided into four groups, can also comprise: start frame, intermediate frame and end frame when single frames and multiframe transmission.
In the present embodiment, described first, second, third frame identification can be, but not limited to adopt high three (bit7-5) in the first character of information frame (comprising first, second, third information frame, the payload of namely GFP service management frame) joint to represent; Its numerical value is different; Four groups the 3rd information frame can be represented respectively with four kind of the 3rd frame identification.
In the present embodiment, described first, second, third information frame can also comprise: serial number; The sequence number that serial number in described first, the 3rd information frame distributes when being and sending this information frame first time; Serial number in second information frame is replied first or the 3rd serial number of information frame.Described serial number can be, but not limited to adopt low seven (bit6 ~ 0) in second of described information frame byte to represent, first (bit7) in the second byte can retain.
In the present embodiment, described response message can be, but not limited to adopt low six (bit5 ~ 0) in the 3rd of described information frame the byte to represent only have the second information frame to contain response message; Described response message comprises correct and mistake two kinds, represents respectively by different values.
In the present embodiment, described data transmission module can also be used for after transmission the 3rd information frame is to the GFP equipment of opposite end, if the second information frame containing wrong responses information that the GFP equipment receiving this opposite end returns or the second information frame that the GFP equipment not receiving this opposite end in the given time returns, then resend last the 3rd information frame sent to the GFP equipment of this opposite end.
In the present embodiment, before the second information frame containing correct response message that described connection initiation module returns at the GFP equipment receiving opposite end, be periodically send first information frame, this also can be understood as:
Described connection initiation module sends first information frame to after the GFP equipment of opposite end, if the second information frame containing wrong responses information that the GFP equipment receiving this opposite end returns or in the scheduled time (time span in length can be " periodically send " inner cycle, the length of " scheduled time " when above judging whether repeating transmission the 3rd information frame can be equal or not etc.) in do not receive this opposite end the second information frame of returning of GFP equipment, then resend the last first information frame sent to the GFP equipment of this opposite end.
In the present embodiment, before the second information frame that the GFP equipment that described connection initiation module/data transmission module sends after the first/three information frame to the GFP equipment of pair of end, receive this opposite end returns, GFP equipment not to this opposite end sends any information frame, if but receive that opposite end GFP equipment sends first or the 3rd information frame responder module or equally can send the second information frame; Described connection initiation module/data transmission module also can to the GFP equipment transmission first of other opposite end or the 3rd information frame.
In the present embodiment, before described data transmission module can also be used for the 3rd information frame once sent on resending, first judge whether the number of times of the 3rd information frame continuous retransmission exceedes predetermined threshold, if do not exceeded, the number of times of continuous retransmission is added 1, and resend the step of last the 3rd information frame sent; If exceeded, notify that described connection initiation module is not connected with the GFP equipment of described opposite end.
The above-mentioned scheduled time and predetermined threshold can based on experience value or the setting such as theoretical value, scheduled time timing from after transmission, counting when the number of times of continuous retransmission was retransmitted from an information frame first time.
In the present embodiment, the 3rd information frame that described data transmission module sends containing described management information specifically can refer to the GFP equipment of this opposite end:
The length of the management information that described data transmission module sends as required, judges whether burst; If management information can send with the 3rd information frame, then the frame identification of the 3rd information frame is set to the 3rd frame identification representing single frames by described data transmission module, described management information is carried in the 3rd information frame and sends;
If the 3rd information frame sends described management information not, then described management information is carried in two or more 3rd information frame and sends by described data transmission module; And will the frame identification of the 3rd information frame of described management be carried, according to the position of the 3rd information frame when sending described management information at place, relative set is the 3rd frame identification representing start frame, intermediate frame or end frame.
In the present embodiment, described GFP equipment can also comprise:
Assembling module, when frame identification for the 3rd information frame received when described responder module is the 3rd frame identification representing start frame, the management information of carrying in each 3rd information frame from the 3rd information frame, to the 3rd information frame that frame identification is expression end frame is all carried out buffer memory, then forms complete management information.
In the present embodiment, described responder module is when first or the 3rd information frame that the GFP equipment receiving opposite end sends, and corresponding returning specifically can refer to containing the second information frame that is correct or wrong responses information:
If described responder module receives serial number in incorrect first, the 3rd information frame of type or the first, the 3rd information frame that receives and desired value does not meet, then return the second information frame containing wrong responses information; When not needing to return the second information frame containing wrong responses information, then return the second information frame containing correct response message;
Described incorrect first, the 3rd information frame of type that receives refers to: receive the first information frame that sends with the GFP equipment of the opposite end of this GFP equipment connection or receive the 3rd information frame do not sent with the GFP equipment of the opposite end of this GFP equipment connection; Described desired value refer to type that this opposite end GFP equipment that the last time receives sends correct first or the 3rd the serial number of information frame add 1.Can be, but not limited to also to use a file or table storage with the mark of the GFP equipment of the opposite end of this GFP equipment connection, not in this file or form be not with the GFP equipment of the opposite end of this GFP equipment connection.
During practical application, the reason of the second information frame sent containing wrong responses information can be caused can be not limited to above description, other reason can also be comprised.
In the present embodiment, described first, the 3rd information frame can also comprise: frame length; The frame length scope that described frame length represents is 0 ~ 55 bit, to refer in this information frame except frame identification, serial number, the length of all the other fields, can be, but not limited to adopt low six (bit5 ~ 0) in the 3rd of described information frame the byte to represent, response message in namely with the second information frame uses the bit of same position, and high two (bit7 ~ 6) in the 3rd byte can retain.
In the present embodiment, described management information is carried in 4th ~ n byte in described 3rd information frame, and that is the 4th byte is the data field of information frame to the n-th byte, needs the management information on the upper strata of transmitting just to be stored in this data field; The wherein length (byte number) of payload in the GFP service management frame supported for concrete GFP business chip of n.
In the present embodiment, described information frame can also comprise (n+1)th byte, as check field, can complete verification for information frame by this field.In actual use, because GFP service management frame has supported FCS verifying function, so this field can not use.
When there being check field, if the first or the 3rd check field mistake in information frame that responder module receives, then also return the second information frame containing wrong responses information.
Certainly; the present invention also can have other various embodiments; when not deviating from the present invention's spirit and essence thereof; those of ordinary skill in the art are when making various corresponding change and distortion according to the present invention, but these change accordingly and are out of shape the protection range that all should belong to claim of the present invention.

Claims (22)

1. a management information communication means for Generic Framing Procedure GFP equipment, comprising:
GFP equipment is when needing to send management information to the GFP equipment of the opposite end do not connected, periodically send first information frame to the GFP equipment of described opposite end, until the GFP equipment receiving this opposite end return containing the second information frame of correct response message time, confirm to be connected with the GFP equipment of this opposite end;
GFP equipment is when needing to send management information to the GFP equipment of the opposite end connected, and three information frame of transmission containing described management information is to the GFP equipment of this opposite end;
GFP equipment is when first or the 3rd information frame that the GFP equipment receiving opposite end sends, and corresponding returning is contained correctly or the second information frame of wrong responses information;
Described first, second, third information frame is the payload of GFP service management frame, carries first, second, third frame identification respectively;
Described 3rd information frame, according to whether burst is specifically divided into four groups, comprising: start frame, intermediate frame and end frame when single frames and multiframe transmission;
Four groups the 3rd information frame is represented respectively with four kind of the 3rd frame identification;
The 3rd information frame that described transmission contains management information comprises to the step of the GFP equipment of opposite end:
The length of the management information sent as required, judges whether burst; If management information can send with the 3rd information frame, then the frame identification of the 3rd information frame is set to the 3rd frame identification representing single frames, described management information is carried in the 3rd information frame and sends;
If the 3rd information frame sends described management information not, then described management information is carried in plural 3rd information frame and sends; And will the frame identification of the 3rd information frame of described management information be carried, according to the position of the 3rd information frame when sending described management information at place, relative set is the 3rd frame identification representing start frame, intermediate frame or end frame.
2. the method for claim 1, is characterized in that:
Described first, second, third frame identification adopts high three bit representations in the first character joint of GFP service management frame payload, and its numerical value is different.
3. the method for claim 1, is characterized in that:
Described response message adopts low six bit representations in the 3rd byte of GFP service management frame payload, and described response message comprises correct response message and wrong responses information two kinds, represents respectively by different values.
4. the method for claim 1, is characterized in that:
Described management information is carried in 4th ~ n byte in described 3rd information frame; The byte number that the payload that wherein n is GFP service management frame comprises.
5. the method for claim 1, is characterized in that:
Before the second information frame that the GFP equipment that GFP equipment sends first or the 3rd after information frame to the GFP equipment of opposite end, receive this opposite end returns, not to the GFP equipment of this opposite end send other first or the 3rd information frame.
6. the method for claim 1, is characterized in that, also comprises:
GFP equipment sends the 3rd information frame to after the GFP equipment of opposite end, if the second information frame containing wrong responses information that the GFP equipment receiving this opposite end returns or the second information frame that the GFP equipment not receiving this opposite end in the given time returns, then resend last the 3rd information frame sent to the GFP equipment of this opposite end.
7. method as claimed in claim 6, is characterized in that, described in resend the step of last the 3rd information frame sent before also comprise:
Judge whether the number of times of the 3rd information frame continuous retransmission exceedes predetermined threshold, if do not exceeded, the number of times of continuous retransmission is added 1, described in carrying out, resend the step of last the 3rd information frame sent; If exceeded, confirm not to be connected with the GFP equipment of described opposite end.
8. the method for claim 1, is characterized in that, also comprises:
When the frame identification of the 3rd information frame that GFP equipment receives is the 3rd frame identification representing start frame, the management information of carrying in each 3rd information frame from the 3rd information frame, to the 3rd information frame that frame identification is expression end frame is all carried out buffer memory, then forms complete management information.
9. the method according to any one of claim 1 to 8, is characterized in that, described first, second, third information frame also comprises:
Serial number; The sequence number that serial number in described first, the 3rd information frame distributes when being and sending this information frame first time; Serial number in second information frame is replied first or the 3rd serial number of information frame;
Described serial number adopts low seven bit representations in second byte of GFP service management frame payload.
10. method as claimed in claim 9, it is characterized in that, described first, the 3rd information frame also comprises:
Frame length; Described frame length refers in this information frame except frame identification, serial number, the length of all the other fields, adopts low six bit representations in the 3rd byte of GFP service management frame payload.
11. methods as claimed in claim 9, is characterized in that, described GFP equipment is when first or the 3rd information frame that the GFP equipment receiving opposite end sends, and the corresponding step returning the second information frame containing correct or wrong responses information comprises:
If described GFP equipment receives serial number in incorrect first, the 3rd information frame of type or the first, the 3rd information frame that receives and desired value does not meet, then return the second information frame containing wrong responses information; When not needing to return the second information frame containing wrong responses information, return the second information frame containing correct response message;
Described incorrect first, the 3rd information frame of type that receives refers to: receive the first information frame that sends with the GFP equipment of the opposite end of this GFP equipment connection or receive the 3rd information frame do not sent with the GFP equipment of the opposite end of this GFP equipment connection;
Described desired value refer to type that this opposite end GFP equipment that the last time receives sends correct first or the 3rd the serial number of information frame add 1.
12. 1 kinds of GFP equipment, is characterized in that, comprising:
Data transmission module;
Connect initiation module, for when needing to send management information to the GFP equipment of the opposite end do not connected, periodically send first information frame to the GFP equipment of described opposite end, until the GFP equipment receiving this opposite end return containing the second information frame of correct response message time, confirm to be connected with the GFP equipment of this opposite end;
Described data transmission module is used for when needing to send management information to the GFP equipment of the opposite end connected, and three information frame of transmission containing described management information is to the GFP equipment of this opposite end;
Responder module, for when receiving first or the 3rd information frame of GFP equipment transmission of opposite end, returns the second information frame containing correct or wrong responses information;
Described first, second, third information frame is the payload of GFP service management frame, carries first, second, third frame identification respectively;
Described 3rd information frame, according to whether burst is specifically divided into four groups, comprising: start frame, intermediate frame and end frame when single frames and multiframe transmission;
Four groups the 3rd information frame is represented respectively with four kind of the 3rd frame identification;
The 3rd information frame that described data transmission module sends containing described management information refers to the GFP equipment of this opposite end:
The length of the management information that described data transmission module sends as required, judges whether burst; If management information can send with the 3rd information frame, then the frame identification of the 3rd information frame is set to the 3rd frame identification representing single frames by described data transmission module, described management information is carried in the 3rd information frame and sends;
If the 3rd information frame sends described management information not, then described management information is carried in plural 3rd information frame and sends by described data transmission module; And will the frame identification of the 3rd information frame of described management information be carried, according to the position of the 3rd information frame when sending described management information at place, relative set is the 3rd frame identification representing start frame, intermediate frame or end frame.
13. equipment as claimed in claim 12, is characterized in that:
Described first, second, third frame identification adopts high three bit representations in the first character joint of GFP service management frame payload, and its numerical value is different.
14. equipment as claimed in claim 12, is characterized in that:
Described response message adopts low six bit representations in the 3rd byte of GFP service management frame payload, and described response message comprises correct response message and wrong responses information two kinds, represents respectively by different values.
15. equipment as claimed in claim 12, is characterized in that:
Described management information is carried in 4th ~ n byte in described 3rd information frame; The byte number that the payload that wherein n is GFP service management frame comprises.
16. equipment as claimed in claim 12, is characterized in that:
Before the second information frame that the GFP equipment that described connection initiation module or data transmission module send first or the 3rd after information frame to the GFP equipment of pair of end, receive this opposite end returns, the GFP equipment not to this opposite end sends any information frame.
17. equipment as claimed in claim 12, is characterized in that:
Described data transmission module is also for after transmission the 3rd information frame is to the GFP equipment of opposite end, if the second information frame containing wrong responses information that the GFP equipment receiving this opposite end returns or the second information frame that the GFP equipment not receiving this opposite end in the given time returns, then resend last the 3rd information frame sent to the GFP equipment of this opposite end.
18. equipment as claimed in claim 17, is characterized in that:
Described data transmission module is also for before the 3rd information frame that once sends on resending, first judge whether the number of times of the 3rd information frame continuous retransmission exceedes predetermined threshold, if do not exceeded, the number of times of continuous retransmission is added 1, and resend the step of last the 3rd information frame sent; If exceeded, notify that described connection initiation module is not connected with the GFP equipment of described opposite end.
19. equipment as claimed in claim 12, is characterized in that, also comprise:
Assembling module, when frame identification for the 3rd information frame received when described responder module is the 3rd frame identification representing start frame, the management information of carrying in each 3rd information frame from the 3rd information frame, to the 3rd information frame that frame identification is expression end frame is all carried out buffer memory, then forms complete management information.
20. equipment according to any one of claim 12 to 19, it is characterized in that, described first, second, third information frame also comprises:
Serial number; The sequence number that serial number in described first, the 3rd information frame distributes when being and sending this information frame first time; Serial number in second information frame is replied first or the 3rd serial number of information frame;
Described serial number adopts low seven bit representations in second byte of GFP service management frame payload.
21. equipment as claimed in claim 20, is characterized in that, described first, the 3rd information frame also comprises:
Frame length; Described frame length refers in this information frame except frame identification, serial number, the length of all the other fields, adopts low six bit representations in the 3rd byte of GFP service management frame payload.
22. equipment as claimed in claim 20, is characterized in that, described responder module is when first or the 3rd information frame that the GFP equipment receiving opposite end sends, and corresponding returning refers to containing the second information frame that is correct or wrong responses information:
If described responder module receives serial number in incorrect first, the 3rd information frame of type or the first, the 3rd information frame that receives and desired value does not meet, then return the second information frame containing wrong responses information; When not needing to return the second information frame containing wrong responses information, then return the second information frame containing correct response message;
Described incorrect first, the 3rd information frame of type that receives refers to: receive the first information frame that sends with the GFP equipment of the opposite end of this GFP equipment connection or receive the 3rd information frame do not sent with the GFP equipment of the opposite end of this GFP equipment connection;
Described desired value refer to type that this opposite end GFP equipment that the last time receives sends correct first or the 3rd the serial number of information frame add 1.
CN201210135470.XA 2012-05-02 2012-05-02 Generic framing procedure (GFP) equipment and management information communication method thereof Active CN102684834B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210135470.XA CN102684834B (en) 2012-05-02 2012-05-02 Generic framing procedure (GFP) equipment and management information communication method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210135470.XA CN102684834B (en) 2012-05-02 2012-05-02 Generic framing procedure (GFP) equipment and management information communication method thereof

Publications (2)

Publication Number Publication Date
CN102684834A CN102684834A (en) 2012-09-19
CN102684834B true CN102684834B (en) 2015-05-27

Family

ID=46816247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210135470.XA Active CN102684834B (en) 2012-05-02 2012-05-02 Generic framing procedure (GFP) equipment and management information communication method thereof

Country Status (1)

Country Link
CN (1) CN102684834B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113115266B (en) * 2021-04-15 2022-09-23 中车青岛四方机车车辆股份有限公司 Method for improving real-time performance of rail transit signal system communication

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101578801A (en) * 2006-11-01 2009-11-11 高通股份有限公司 Multiplexing of control and data with varying power offsets in a SC-FDMA system
CN102281128A (en) * 2011-08-08 2011-12-14 电信科学技术研究院 Channel state information feedback triggering and feeding back method and device thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE602004010712D1 (en) * 2003-11-25 2008-01-24 Ericsson Telefon Ab L M PERFORMANCE-BASED RATES ADAPTATION OF WIRELESS COMMUNICATION CHANNELS

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101578801A (en) * 2006-11-01 2009-11-11 高通股份有限公司 Multiplexing of control and data with varying power offsets in a SC-FDMA system
CN102281128A (en) * 2011-08-08 2011-12-14 电信科学技术研究院 Channel state information feedback triggering and feeding back method and device thereof

Also Published As

Publication number Publication date
CN102684834A (en) 2012-09-19

Similar Documents

Publication Publication Date Title
CN101132262B (en) Method for implementing synchronous HARQ in TDD system and data transmission
CN105120439B (en) Beidou long message communication means
CN106559739B (en) Lightweight data transmission method suitable for Bluetooth low-power wireless communication system
CN102611537B (en) A kind of repeating method of packet and device
CN111130710B (en) SPI-based duplex communication method
CN102761905B (en) Message treatment method, equipment and system
KR20020013845A (en) Method for minimizing feedback responses in arq protocols
CN105934907A (en) Radio resource scheduling method and apparatus
EP2241044B1 (en) Method of communication, in particular with capability of frame abortion or retransmission indication, between a transmitter and a receiver based on frames, and corresponding communication node
CN101507318B (en) Radio communication device and method used in mobile communication system
JP2016518749A (en) Method and apparatus for using more transmission opportunities in a distributed network topology with limited HARQ processes
CN108347782A (en) A kind of ascending control information sending, receiving method, terminal and base station
CN109495215A (en) A kind of communication means of half-duplex bus, system and device and readable storage medium storing program for executing
CN104243111A (en) Method and device for transmitting data packet
CN115994048B (en) Chip, communication method, system and storage medium
CN102315923B (en) Radio link control method of 3G (The 3rd Generation) satellite communication system
CN103999394B (en) Data retransmission and feedback methods, and corresponding apparatus
CN105871512B (en) A kind of data transmission method and device
CN104506280A (en) Reliable data transmitting method based on time division multiple access space dynamic network
US8547881B2 (en) Method, apparatus and system for transmitting ACK response in bidirectional data transmission
CN109150416A (en) Data transmission method and device
CN117097443B (en) Information system with key data transmission feedback function and transmission method thereof
CN102684834B (en) Generic framing procedure (GFP) equipment and management information communication method thereof
MX2023000506A (en) Link error recovery method and apparatus.
CN105634894B (en) A kind of enhanced CAN bus data re-transmitting method and 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
C14 Grant of patent or utility model
GR01 Patent grant