CN106911388A - The method and apparatus of self-adaptative adjustment different rates device port - Google Patents

The method and apparatus of self-adaptative adjustment different rates device port Download PDF

Info

Publication number
CN106911388A
CN106911388A CN201510979248.1A CN201510979248A CN106911388A CN 106911388 A CN106911388 A CN 106911388A CN 201510979248 A CN201510979248 A CN 201510979248A CN 106911388 A CN106911388 A CN 106911388A
Authority
CN
China
Prior art keywords
optical module
calling terminal
called end
data
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510979248.1A
Other languages
Chinese (zh)
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.)
Hangzhou Huawei Enterprises Communications Technologies Co Ltd
Original Assignee
Hangzhou Huawei Enterprises Communications Technologies 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 Hangzhou Huawei Enterprises Communications Technologies Co Ltd filed Critical Hangzhou Huawei Enterprises Communications Technologies Co Ltd
Priority to CN201510979248.1A priority Critical patent/CN106911388A/en
Publication of CN106911388A publication Critical patent/CN106911388A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0002Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/25Arrangements specific to fibre transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/40Transceivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/80Optical aspects relating to the use of optical transmission for specific applications, not provided for in groups H04B10/03 - H04B10/70, e.g. optical power feeding or optical transmission through water
    • H04B10/801Optical aspects relating to the use of optical transmission for specific applications, not provided for in groups H04B10/03 - H04B10/70, e.g. optical power feeding or optical transmission through water using optical interconnects, e.g. light coupled isolators, circuit board interconnections
    • H04B10/803Free space interconnects, e.g. between circuit boards or chips

Abstract

The present invention relates to a kind of method and apparatus of self-adaptative adjustment different rates device port, the method includes sending communication handshake code with presetting frequency, communication handshake code is used to indicate called end to return to answer back code, wherein, communication handshake code and answer back code are presetting signal;When answer back code is received, set up with called end and communicated to connect, and acquisition rate request is sent to called end, first rate information is sent to calling terminal according to rate request is obtained for called end, receive first rate information;The speed that calling terminal optical module transmits data is adjusted according to first rate information;Speed adjust calling terminal according to the optical module transmission data after adjustment transmits the speed of data by optical module.Handshake communication code is sent by with fixed frequency, the communication set up between docking different rates optical module terminal device, the speed of opposite equip. is obtained, the communication between the terminal device for setting up docking different rates, the port connection of self adaptation docking different rates terminal device is realized.

Description

The method and apparatus of self-adaptative adjustment different rates device port
Technical field
The present invention relates to the communications field, more particularly to a kind of side of self-adaptative adjustment different rates device port Method and equipment.
Background technology
With 25G strings and the arrival in adapter epoch, under identical interface encapsulation, can it is simultaneously compatible not The code stream of same rate, for example:25G SFP28 and 10G SFP+, 100G QSFP28 and 40G QSFP+, Wherein, SFP28 is a kind of 25G light module packages mode, and SFP+ is a kind of 10G light module packages mode, QSFP28 is a kind of 100G light module packages mode, and QSFP+ is a kind of 40G light module packages mode, this Will there is situation of many docking terminal devices using different rates optical module in sample.When terminal device optical mode When block speed is inconsistent, the Physical Coding Sublayer (Physical Coding Sublayer, PSC) of terminal device Idle code streams, i.e. ,/I/ yards, the optical module speed point of such as terminal device are sent with optical module rate enforcement Not Wei 25G SFP28,10G SFP+, PCS layers of terminal device force to send /I/ code divisions not with 25.78125G, 10.3125G speed send, such terminal device cannot synchronous this idle code stream, and then The port of terminal device cannot connect, and also referred to as the port of terminal device cannot UP.
The content of the invention
The method and apparatus of a kind of self adaptation different rates device port provided in an embodiment of the present invention, with reality The communication now set up between the terminal device of docking different rates optical module, self adaptation achieves a butt joint not synchronized The port connection of rate optical module terminal device.
To achieve the above object, in a first aspect, the embodiment of the invention provides a kind of self-adaptative adjustment difference The method of rate device port, the method includes:
Calling terminal sends communication handshake code with first frequency, and communication handshake code is for indicating called end with first Frequency returns to answer back code, wherein, the first frequency is presetting fixed frequency;Communication handshake code and should It is presetting signal to answer code;When calling terminal receives answer back code, set up with called end and communicated to connect, And acquisition rate request is sent to called end, sent out to calling terminal according to rate request is obtained for called end Sending first rate information, first rate information is used to determine that called end transmits data by the first optical module Rate information;Calling terminal receives first rate information;Calling terminal adjusts calling terminal according to first rate information The speed of data is transmitted by the second optical module.
With reference in a first aspect, in the first mode in the cards of first aspect, calling terminal is with first Frequency sends communication handshake code, including:Calling terminal is with first frequency by opening or closing the second optical module Luminous enable combination send communication handshake code.
With reference to the first mode in the cards of first aspect or first aspect, the of first aspect In two kinds of modes in the cards, calling terminal adjusts calling terminal and passes through the second optical mode according to first rate information Block transmits the speed of data, including:Calling terminal adjusts the second optical module transmission number according to first rate information According to speed;Calling terminal according to adjustment after the second optical module transmission data speed adjust calling terminal transmission The speed of data.
With reference to the third mode in the cards of first aspect, the 4th kind in first aspect may realize Mode in, first rate information include called end transmit data the second rate information and the first optical module The rate information of data is transmitted, calling terminal adjusts the second optical module transmission data according to first rate information Speed, including:Calling terminal transmits the rate information of data according to the second rate information and the first optical module, Determine that called end transmits the rate information of data by the first optical module;Calling terminal is according to called end by the The rate information of one optical module transmission data adjusts the speed that the second optical module transmits data.
With reference to the third mode in the cards of first aspect, the 5th kind in first aspect may realize Mode in, first rate information be called end transmit data rate information, calling terminal according to first speed Rate information adjusts the speed that the second optical module transmits data, including:Calling terminal passes through first according to called end The rate information of optical module transmission data adjusts the speed that the second optical module transmits data.
May be realized with reference to the 4th kind of mode in the cards of first aspect or the 5th kind of first aspect Mode, in the 6th kind of mode in the cards of first aspect, passed through according to called end in calling terminal Before the rate information of the first optical module transmission data adjusts the speed of the second optical module transmission data, method Also include:Calling terminal determines that calling terminal transmits the maximum rate of data by the second optical module and called end leads to Whether the maximum rate for crossing the first optical module transmission data is consistent.
With reference to the 6th kind of mode in the cards of first aspect, may be realized in the 7th of first aspect Mode in, when calling terminal determines that calling terminal transmits the maximum rate of data and called by the second optical module End by the maximum rate that the first optical module transmits data it is inconsistent when, calling terminal is according to calling terminal by the The maximum rate and called end of two optical modules transmission data transmit the maximum rate of data by the first optical module In less maximum rate adjust the speed that the second optical module transmits data.
With reference in a first aspect, in the 8th kind of mode in the cards of first aspect, being built with called end Before vertical communication connection, method also includes:Calling terminal determines whether the answer back code for receiving is correct.
With reference to the 8th kind of mode in the cards of first aspect, the 9th kind in first aspect may realize Mode in, when calling terminal receive answer back code for correct answer back code when, method also includes:Calling terminal stops Only send communication handshake code.
Second aspect, the embodiment of the present application also provides a kind of side of self-adaptative adjustment different rates device port Method, the method includes:Called end receives the communication handshake code that calling terminal is sent with first frequency;Called end According to communication handshake code, answer back code is returned to calling terminal with first frequency, for calling terminal according to response Code sets up communication connection with called end, and obtains rate request to called end transmission, wherein, first frequency It is presetting fixed frequency;Communication handshake code and answer back code are presetting signal;Called end is received and obtained Take rate request;Called end sends first rate information, the first speed according to rate request is obtained to calling terminal Rate information is used to determine the rate information that called end transmits data by the first optical module, for calling terminal The speed that calling terminal transmits data by the second optical module is adjusted according to first rate information.
With reference to second aspect, in the first mode in the cards of second aspect, called end receives master The communication handshake code for making end be sent with first frequency, including:It is logical with first frequency that called end receives calling terminal Cross the communication handshake code that the combination of the luminous enable for opening or closing the second optical module sends.
With reference to the first mode in the cards of second aspect or second aspect, the second of second aspect Plant in mode in the cards, called end returns to answer back code according to communication handshake code to calling terminal, including: Called end determines that communication handshake code is presetting communication handshake code;When handshake code is that presetting communication is held During hand code, called end returns to answer back code to calling terminal.
The third aspect, the embodiment of the present invention provides a kind of equipment, and the equipment includes:Transmitting element, reception Unit and adjustment unit;
Transmitting element, for sending communication handshake code with first frequency, communication handshake code is for indicating to be called End returns to answer back code with first frequency, wherein, first frequency is presetting fixed frequency;Communication handshake Code and answer back code are presetting signal;
Transmitting element is additionally operable to, and when receiving unit receives answer back code, is set up with called end and communicated to connect, And acquisition rate request is sent to called end, sent out to calling terminal according to rate request is obtained for called end Sending first rate information, first rate information is used to determine that called end transmits data by the first optical module Rate information;
Receiving unit is additionally operable to, and receives first rate information;
Adjustment unit, for transmitting data by the second optical module according to first rate information adjusting device Speed.
With reference to the third aspect, in the first possible implementation of the third aspect, transmitting element is specific For sending communication by opening or closing the combination of the luminous enable of the second optical module with first frequency Handshake code.
With reference to the first mode in the cards of the third aspect or second aspect, the second of the third aspect Plant in mode in the cards, adjustment unit according to first rate information specifically for adjusting the second optical mode Block transmits the speed of data;The speed adjust equipment of the second optical module transmission data after according to adjustment passes through Second optical module transmits the speed of data.
With reference to second mode in the cards of the third aspect, the third in the third aspect may be realized Mode in, first rate information include called end transmit data the second rate information and the first optical module The rate information of data is transmitted, equipment also includes determining unit, for according to the second rate information and first Optical module transmits the rate information of data, determines that called end is believed by the speed that the first optical module transmits data Breath;Adjustment unit adjusts the second optical mode according to called end by the rate information that the first optical module transmits data Block transmits the speed of data.
With reference to second mode in the cards of the third aspect, the 4th kind in the third aspect may realize Mode in, first rate information be called end transmit data rate information, adjustment unit according to be called End adjusts the speed that the second optical module transmits data by the rate information that the first optical module transmits data.
With reference to second mode in the cards of the third aspect, the 5th kind in the third aspect may realize Mode in, determining module be additionally operable to determine calling terminal by the second optical module transmit data maximum rate It is whether consistent by the maximum rate that the first optical module transmits data with called end.
With reference to the 5th kind of mode in the cards of the third aspect, the 6th kind in the third aspect may realize Mode in, adjustment unit specifically for, when determining unit determine calling terminal by the second optical module transmit When the maximum rate of data is inconsistent with the maximum rate that called end passes through the first optical module transmission data, adjust Whole unit passes through the first light according to calling terminal by the maximum rate and called end that the second optical module transmits data Less maximum rate adjusts the speed that the second optical module transmits data in the maximum rate of module transfer data Rate.
With reference to the third aspect, in the 7th kind of mode in the cards of the third aspect, determining unit also has For it is determined that whether the answer back code for receiving is correct.
With reference to the 7th kind of mode in the cards of the third aspect, the 8th kind in the third aspect may realize Mode in, when receiving unit receives answer back code for correct answer back code, transmitting element stops sending logical Letter handshake code.
Fourth aspect, the embodiment of the present invention also provides a kind of equipment, and the equipment includes:Receiving unit, hair Send unit;
Receiving unit is used for, and receives the communication handshake code that calling terminal is sent with first frequency, wherein, first Frequency is presetting fixed frequency;
Transmitting element, for according to communication handshake code, answer back code being returned to calling terminal with first frequency, with Communication connection is set up according to answer back code and equipment for calling terminal, and acquisition rate request is sent to equipment, Wherein, communication handshake code and answer back code are presetting signal;
Receiving unit is additionally operable to, and receives and obtains rate request;
Transmitting element is additionally operable to, and first rate information, first are sent to calling terminal according to rate request is obtained Rate information is used to determine the rate information that called end transmits data by the first optical module, for caller Hold and the speed that calling terminal transmits data by the second optical module is adjusted according to first rate information.
With reference to fourth aspect, in the first mode in the cards of fourth aspect, receiving unit is specific For receiving calling terminal with first frequency by opening or closing the combination of the luminous enable of the second optical module The communication handshake code that mode sends.
With reference to the first mode in the cards of fourth aspect or fourth aspect, the second of fourth aspect Plant in mode in the cards, the equipment also includes determining unit, for determining that communication handshake code is default Fixed communication handshake code;Transmitting element specifically for, when handshake code is presetting communication handshake code, Answer back code is returned to calling terminal.
Based on the method and apparatus of self adaptation different rates device port provided in an embodiment of the present invention, pass through Handshake communication code is sent in the way of fixed frequency opens or closes luminous enable, and is connect by fixed frequency The handshake communication code for transmitting and receiving, and returns to answer back code, set up docking different rates optical module terminal device it Between communication, asked by calling terminal, the mode of called end response (or the mode of asynchronous communication, for example The mode of UART asynchronous communications) obtain opposite equip. optical module speed, realize foundation docking it is not synchronized Communication between the terminal device of rate optical module, self adaptation docks the end of different rates optical module terminal device Mouth connection.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be in the embodiment of the present invention The required accompanying drawing for using is briefly described, it should be apparent that, drawings described below is only this Some embodiments of invention, for those of ordinary skill in the art, are not paying creative work Under the premise of, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of communication system schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of structural representation of equipment provided in an embodiment of the present invention;
Fig. 3 is the structural representation of another equipment provided in an embodiment of the present invention;
Fig. 4 is a kind of method stream of self-adaptative adjustment different rates device port provided in an embodiment of the present invention Cheng Tu;
The method stream of the self-adaptative adjustment different rates device port that Fig. 5 is provided for another embodiment of the present invention Cheng Tu;
A kind of structural representation of equipment that Fig. 6 is provided for another embodiment of the present invention;
The structural representation of another equipment that Fig. 7 is provided for another embodiment of the present invention;
The structural representation of another equipment that Fig. 8 is provided for another embodiment of the present invention.
Specific embodiment
The method and apparatus of self-adaptative adjustment different rates device port provided in an embodiment of the present invention, application In ethernet side port communications, the equipment of self-adaptative adjustment different rates device port can be using work mould of enjoying a double blessing Formula or auto-negotiation mode, work of enjoying a double blessing pattern are that equipment can also receive data while data are sent; Auto negotiation mode is the connection speed and work pattern of enjoying a double blessing according to opposite equip., and the speed of itself is adjusted automatically To highest working level, i.e., equipment two ends can have prestissimo and work pattern of enjoying a double blessing.
The technical scheme of the embodiment of the present invention is described in detail with reference to Fig. 1.It should be understood that this Only it is an example of the technical scheme for illustrating the embodiment of the present invention, not to embodiment of the present invention structure Into any restriction.
Fig. 1 is a kind of communication system schematic diagram provided in an embodiment of the present invention.As shown in figure 1, the communication System 100 includes calling terminal 110 and called end 120.Calling terminal 110 and called end 120 are to utilize ether Two equipment that net is communicated, for example:With 100G QSFP28 and 40G QSFP+ or with 25G SFP28 With the high-speed equipment and low-speed device that 10G SFP+ transmit data, work pattern of enjoying a double blessing can be used.Calling terminal 110 carry out data biography with called end 120 by the optical module 140 of pluggable second optical module 130 and first Defeated, the second optical module 130 is consistent with the rate configuration of the transmission data of calling terminal 110, the first optical module 140 Rate configuration with the transmission data of called end 120 is consistent.
When the message transmission rate of the second optical module 130 and the first optical module 140 is differed, calling terminal 110 send communication handshake code, the basis of called end 120 by with presetting fixed frequency to called end 120 Presetting frequency reception communication handshake code, and determine the communication handshake for receiving code for presetting communication is held During hand code, and the answer back code specified is returned to calling terminal, now calling terminal 110 is set up with called end 120 Handshake communication.Calling terminal 110 and called end 120 set up handshake communication success after, calling terminal 110 or Person's called end 120 can obtain the opposite end (optical mode of called end 120 and first by the handshake communication of foundation Block 140 or the optical module 130 of calling terminal 110 and second) transmission data rate information.And according to acquisition To the rate information of opposite end optical module transmission data adjust the speed of itself data being transmitted with optical module, with Ensure that calling terminal is consistent with the speed of called end transmission data, realize the connection of calling terminal and called end port, Also referred to as port UP.
It should be understood that in embodiments of the present invention, in " the second optical module " and " the first optical module " " the One " and " second " to be intended merely to distinguish the optical module that calling terminal and called end use be two optical devices, In embodiments of the present invention, " first " and " second " is not intended to limit the technical scheme of the embodiment of the present invention.
Fig. 2 is a kind of structural representation of equipment provided in an embodiment of the present invention.The equipment 200 corresponds to Calling terminal 110 shown in Fig. 1.As shown in Fig. 2 the equipment or be calling terminal 110, including:Hair Emitter 210, receiver 220, memory 230, processor 240 and communication bus 250, the transmitter 210th, receiver 220, memory 230, processor 240 are connected by communication bus 250, and are completed Communication each other.Transmitter 210 is used to send corresponding instruction to external equipment.Receiver 220 Information for receiving external equipment return.Memory 230 is used for store instruction or data.Processor 240 For calling the instruction stored in memory 230, and perform corresponding operation.
Fig. 3 is the structural representation of another equipment provided in an embodiment of the present invention.The correspondence of equipment 300 In the called end 120 shown in Fig. 1.As shown in figure 3, the equipment or referred to as called end 120, including: Transmitter 310, receiver 320, memory 330, processor 340 and communication bus 350, the transmitting Device 310, receiver 320, memory 330, processor 340 are connected by communication bus 350, and complete Into communication each other.Transmitter 310 is used to send corresponding information to external equipment.Receiver 320 Instruction for receiving external equipment transmission.Memory 330 is used for store instruction or data.Processor 340 For calling the instruction stored in memory 330, and perform corresponding operation.
In embodiments of the present invention, the processor 240/340 shown in Fig. 2 and Fig. 3 can be central treatment Unit (Central Processing Unit, CPU), the processor 240/340 can also be that other are general Processor, digital signal processor (DSP), application specific integrated circuit (ASIC), ready-made programmable gate It is array (FPGA) or other PLDs, discrete gate or transistor logic, discrete Nextport hardware component NextPort etc..General processor can be microprocessor or the processor can also be any conventional Processor etc..
Communication bus 250/350 can also include that power bus, control are total in addition to including data/address bus Line and status signal bus in addition etc..But for the sake of for clear explanation, various buses are all designated as in figure leading to Letter bus 250/350.
Memory 230/330 can include read-only storage and random access memory, and to processor 240/340 provide instruction and data.The a part of of memory can also include that non-volatile random accesses storage Device.For example, memory can be with storage device presetting handshake communication code and answer back code.
Fig. 4 is a kind of method letter of self-adaptative adjustment different rates device port provided in an embodiment of the present invention Order figure.As shown in figure 4, the executive agent of the method 400 is for the calling terminal 110 shown in Fig. 1 and is called End 120.The method 400 is comprised the following steps:
S410, calling terminal sends communication handshake code with first frequency to called end.
S420, called end determines whether communication handshake code is presetting communication handshake code.
S430, when communication handshake code is for presetting communication handshake code, returns presetting to calling terminal Answer back code.
S440, calling terminal determines whether the answer back code for receiving is presetting answer back code, should when what is received When to answer code be presetting answer back code, set up with called end and communicated to connect.
S450, calling terminal sends to called end and obtains rate request.
S460, called end sends first rate information according to rate request is obtained to calling terminal, first speed Rate information is used to determine the rate information that called end transmits data by the first optical module.
S470, calling terminal adjusts the speed that the second optical module transmits data according to first rate information.
S480, calling terminal according to adjustment after the second optical module send data speed adjust self transmission number According to speed.
In embodiments of the present invention, the second optical module and the first optical module are a kind of pluggable optical devices, For transmitting data.In embodiments of the present invention, the speed of the second optical module transmission data is passed with calling terminal The configuration consistency of transmission of data speed.The speed and called end transmitted data rates of the first optical module transmission data Configuration consistency.
When calling terminal is transmitted by the speed and called end that the second optical module transmits data by the first optical module When the speed of data is inconsistent, in order to ensure that calling terminal and called end can be carried out normally by optical module Data transfer is, it is necessary to the speed for adjusting calling terminal and called end transmission data is consistent.
In embodiments of the present invention, calling terminal transmits the speed of data by the second optical module and called end leads to The speed for crossing the first optical module transmission data is inconsistent, including:For example calling terminal transmission data speed be 40G, the speed of the second optical module transmission data is 40G-100G, and the speed of called end transmission data is 40G-100G, the speed of the first optical module transmission data is 40G-100G, then calling terminal passes through the second optical mode The speed of block transmission data is 40G, and called end can be by the speed that the first optical module transmits data 40G-100G, and called end is any speed in addition to 40G by the speed that the first optical module transmits data During rate, it is believed that calling terminal transmits the speed of data by the second optical module and called end passes through the first optical module The speed for transmitting data is inconsistent;Or the speed of calling terminal transmission data is 40G-100G, the second optical mode The speed of block transmission data is 40G, and the speed of called end transmission data is 40G-100G, the first optical module The speed for transmitting data is 40G-100G, then calling terminal is by the speed that the second optical module transmits data 40G, called end can be 40G-100G by the speed that the first optical module is transmitted, and called end passes through first When the speed of optical module transmission data is other speed in addition to 40G, it is believed that calling terminal passes through the second light The speed of module transfer data is inconsistent by the speed that the first optical module transmits data with called end;Also or Person says, when the speed of calling terminal, the second optical module, called end and the first optical module transmission data is During 40G-100G, then called end transmits the speed of data by the second optical module and called end passes through the first light The speed of module transfer data can be any value in 40G-100G, when calling terminal passes through the second optical mode When the speed of block transmission data is differed with the rate value of called end transmission data, then it is assumed that transmit at its two ends The speed of data is inconsistent.
In embodiments of the present invention, calling terminal transmits the speed of data by the second optical module and called end leads to Cross the first optical module transmission data speed it is inconsistent can also have other forms, but need to meet condition: Calling terminal transmits the speed or speed range of data by the second optical module and called end passes through the first optical module Transmitting the speed or speed range of data will have certain speed range to overlap, in order to lead to when calling terminal When crossing the second optical module and called end and carrying out data transmission by the first optical module, self adaptation association can be carried out Business, the speed adjust by two ends transmission data is consistent, realizes two ends port UP.
It should be understood that in embodiments of the present invention, calling terminal, the second optical module, called end or the first light The speed or speed range of module transfer data can also be other numerical value, for example:10G, 25G or 10G-25G。
In embodiments of the present invention, data are transmitted by optical module for convenience of adjustment calling terminal or called end Speed it is consistent, calling terminal and called end two ends need to set up communication connection by presetting mode, and The speed that data are transmitted in opposite end is obtained by the communication connection set up, that is to say, that calling terminal and called end Known one another by the communication connection set up and each transmit the speed of data, according to the transmission data for getting Speed adjust itself correspondence optical module speed so that calling terminal and called end two ends optical module transmission number According to speed be consistent, further adjustment calling terminal or called end transmit the speed of data, it is ensured that main Being end and called end can carry out normal data transfer.
In S410, first frequency is presetting fixed frequency, the frequency could be arranged to calling terminal and Called end can carry out the frequency of proper communication.To set up the communication connection between calling terminal and called end, Calling terminal needs to send communication handshake code to called end with presetting fixed frequency, for example, presetting Fixed frequency is 500HZ, i.e., send a communication handshake code to called end per 2ms.The communication handshake code be Calling terminal and called end carry out pre- communication before set signal specific, it can be understood as calling terminal ask with A kind of password that called end is communicatively coupled, or it is referred to as " secret signal ".
In S420, called end receive calling terminal transmission communication handshake code when, it is necessary to be held to the communication Hand code judged, determines whether communication handshake code is communication handshake set in advance code, for example, be called End can be compared by the communication handshake code for prestoring in memory with the communication handshake code for receiving It is right, communicated to connect with determining the need for being set up with calling terminal.By comparing, when communication handshake code is pre- During the communication handshake code of setting, S430 is performed.
In S430, called end returns to the answer back code specified to calling terminal, and the answer back code is calling terminal and quilt It is the signal specific set before the pre- communication in end.It can be appreciated that called end responds calling terminal can carry out A kind of password of communication connection, or " secret signal ".
In S440, calling terminal is received after answer back code, is determined whether and is called according to answer back code Communication connection is set up at end, that is, judge whether the answer back code for receiving is the answer back code for prestoring, and for example may be used With the state table prestored by inquiry, as shown in table 1, compared according to state table, it is determined that connecing Whether the answer back code for receiving is pre-stored answer back code.
Table 1
Called end Answer back code
A 0011
B 1010
C 0001
When the answer back code for receiving is pre-stored answer back code, such as, receive the response of called end A Code is 0011, and through tabling look-up 1, the answer back code 0011 with the called end A being pre-stored in table 1 is consistent, can be with Perform S440;When the answer back code of the called end for receiving is for the answer back code of the called end of storage, can be with Directly stop communication.
In embodiments of the present invention, when the called end answer back code for receiving the answer back code of called end and storage not When consistent, calling terminal can also determine whether the time for receiving the answer back code exceedes presetting time threshold, When answer back code is received not less than presetting time threshold, calling terminal can continue to send logical to called end Letter handshake code;When the time for receiving answer back code presetting time threshold is exceeded, calling terminal can stop Communication handshake code is sent to called end.
It should be understood that called end is by the communication handshake code that will be received and pre-stored communication in memory Handshake code is compared, and pass through to table look-up the answer back code and pre-stored handshake communication that will be received with calling terminal Code is compared, it is determined whether be communicatively coupled, it is only for describe the embodiment of the present invention in detail Technical scheme, is not intended to be limited in any to this in embodiments of the present invention.
In S450, after calling terminal and called end set up communication connection, calling terminal is needed to called end The request for obtaining called end speed is sent, to obtain the speed that called end transmits data by the first optical module Information.In embodiments of the present invention, the acquisition rate request could be arranged to obtain called end transmission data Rate information and the first optical module transmission data rate information, or directly or called end pass through First optical module transmits the rate information of data.
In embodiments of the present invention, called end transmits the rate information of data by being called by the first optical module The rate information of end transmission data and the rate information of the first optical module transmission data are determined.For example:Quilt The rate information for being end transmission data is 40G, and the first optical module transmits the rate information 40G-100G of data, Then called end is only 40G by the speed that the first optical module transmits data;But if called end transmits data Rate information and the first optical module transmission data rate information when being 40G-100G, called end passes through The speed of the first optical module transmission data can be any rate value in 40G-100G, but in actual applications, Usually 40G or 100G.
Similarly, calling terminal is transmitted the speed of data by the speed that the second optical module transmits data by calling terminal The rate information of information and the second optical module transmission data is determined.In actual applications, pass through in calling terminal When second optical module is carried out data transmission with called end by the first optical module, the speed of data is transmitted at two ends In the case that rate is consistent, it will usually select the two ends can to transmit the maximum rate of data, to realize that two ends pass The maximization of transmission of data speed.For example:Calling terminal by the second optical module transmit data speed range be 40G-100G, called end can be with transmitted data rates scope also as 40G-100G, then by the first optical module Two ends are selected with the rate transmissioning data of 100G.
In S460, the called end that first rate information is used to represent corresponding with calling terminal transmits data Rate information, the first rate information is according to the corresponding information for obtaining rate request information acquisition:Quilt The rate information of end transmission data and the rate information of the first optical module transmission data, or called end is made to lead to Cross the rate information that the first optical module transmits data.
The rate information of called end and the first optical module transmission data can be a fixed rate value, Can be a rate value scope, for example, the speed of called end transmission data is 40G, the first optical module biography The speed of transmission of data is 40G-100G, and the speed of called end transmission data is 40G-100G, the first optical module The rate value of data is transmitted for the speed of 40G or called end transmission data is 40G-100G, the first optical mode The speed of block transmission data is 40G-100G.
In S470, when rate information and the first optical mode that data are transmitted for called end that calling terminal is received When block transmits the rate information of data, calling terminal can transmit the rate information and the of data according to called end The rate information of two optical modules transmission data determines that called end is believed by the speed that the first optical module transmits data Breath.The second optical module is adjusted further according to called end by the rate information that the first optical module transmits data to transmit The speed of data, in S480, further adjustment calling terminal transmits the speed of data, in order to calling terminal It is consistent by the speed that the first optical module transmits data with called end by the second optical module, realize calling terminal With the connection of called end port.
For example, calling terminal can be 100G by the speed that the second optical module transmits data, but calling terminal is logical The speed range for crossing the second optical module transmission data is 40G-100G, and called end is transmitted by the first optical module The speed of data be 40G, and called end by the first optical module transmit data speed range can be 40G-80G, then calling terminal need and called end between carry out data transmission when, the second light can be adjusted The transmission rate of module is 40G, and the speed adjust by calling terminal transmission data is to transmit speed with the second optical module One rate value of rate identical;Calling terminal can also by the second optical module, calling terminal transmission data speed, The rate adaptation of the first optical module and called end transmission data is adjusted to any speed in 40G-100G Value, to realize that calling terminal transmits the speed of data by the second optical module with called end by the first optical module Unanimously, the port UP of calling terminal and called end different rates equipment is realized.In actual applications, calling terminal Can be by the second optical module, the speed of calling terminal transmission data, the first optical module and called end transmission data Rate adaptation be adjusted to 100G in the case where calling terminal and called end port UP is realized, realize master The maximum rate of end and called end data is made to transmit.
When calling terminal is transmitted by the speed and called end that the second optical module transmits data by the first optical module When the speed of data is consistent, for example:Calling terminal by the second optical module transmit data speed can be 100G, when called end is also 100G by the speed that the first optical module transmits data, calling terminal and called end The speed that data are transmitted at two ends need not be adjusted, it is also possible to realize two ends port UP.
In S480, calling terminal transmits the physics core of the speed to equipment of data according to the optical module after adjustment Piece, i.e., with the chip of external signal interface, or for ethernet PHY chip and exchange (LAN SWITCH, LSW) chip is adjusted or sets, and realizes the UP of calling terminal and called end port.
Based on above technical scheme, self-adaptative adjustment different rates device port provided in an embodiment of the present invention Method, by with fixed frequency send handshake communication code, and by fixed frequency receive send shaking hands Communications codes, and answer back code is returned, the communication set up between docking different rates terminal device, by request With the speed that the mode of response obtains opposite equip., realize set up docking different rates terminal device it Between communication, self adaptation dock different rates terminal device port UP.
It should be noted that in embodiments of the present invention, communication handshake code can use simple binary system Code communication, quick continuous impulse (Fast Link Pulse, FLP) code communication or other codes are carried out Communication, is not intended to be limited in any to this in embodiments of the present invention.
It should be noted that in embodiments of the present invention, calling terminal and called end all use work pattern of enjoying a double blessing, I.e. calling terminal can also while data are transmitted by the first optical module by the second optical module or called end Receive data.
Also, it should be noted that in embodiments of the present invention, mainly with calling terminal as high-speed equipment, i.e. phase To called end transmission data speed it is high as a example by technical scheme is illustrated, in actual applications, work as quilt It is high-speed optical module to be end optical module, it is necessary to called end will be from when calling terminal optical module is low speed optical module Body optical module transmits the rate reduction of data, to realize calling terminal optical module and called end optical module transmission number According to speed it is consistent.
It should be understood that in embodiments of the present invention, optical module is a kind of pluggable equipment.
Alternatively, as another embodiment of the present invention, calling terminal sends communication handshake code with first frequency, Including:Calling terminal is with first frequency by opening or closing the combination of the luminous enable of the second optical module Send communication handshake code.
In embodiments of the present invention, first frequency is presetting fixed frequency.Communication handshake code is default The signal of fixed a kind of luminous enable combination for opening or closing optical module, it can be understood as actual raw A kind of mode of the optical signal for producing is opened or closed to flashlight in work.For example open or off optical mode The communication handshake code that the luminous enable of block sends is 1010 ....
It should be noted that in embodiments of the present invention, when opening or closing light enable signal, depositing In time delay problem, in order to ensure can to send communication handshake code, to presetting fixed frequency Rate is defined, in embodiments of the present invention, for example, the time delay for opening light enable signal is 2ms, Then need to set fixed frequency less than 500HZ.
Preferably as another embodiment of the present invention, calling terminal adjusts calling terminal according to first rate information The speed of data is transmitted, including:Calling terminal adjusts the second optical module transmission data according to first rate information Speed;Calling terminal according to adjustment after the second optical module transmission data speed adjust calling terminal transmission number According to speed.
Preferably as another embodiment of the present invention, first rate information includes called end transmission data Second rate information and the first optical module transmit the rate information of data.Calling terminal is according to the first rate Information adjusts the speed that the second optical module transmits data, including:Calling terminal transmits number according to the first optical module According to rate information and called end transmit data the second rate information, determine called end pass through the first optical mode Block transmits the rate information of data;Calling terminal transmits the speed of data according to called end by the first optical module Information adjusts the speed that the second optical module transmits data.
Alternatively, in another embodiment, first rate information is that called end is passed by the first optical module The rate information of transmission of data, calling terminal adjusts the speed that the second optical module transmits data according to first rate information Rate, including:
Calling terminal adjusts the speed that the second optical module transmits data according to the rate information that called end transmits data Rate.
Alternatively, as another embodiment of the present invention, as shown in figure 5, logical according to called end in calling terminal Before crossing the speed of rate information adjustment calling terminal optical module transmission data of the first optical module transmission data, The method 400 also includes:
S490, calling terminal determines that calling terminal transmits the maximum rate and called end of data by the second optical module By the first optical module transmit data maximum rate it is whether consistent.
When calling terminal optical module passes through first by the maximum rate and called end that the second optical module transmits data When the maximum rate of optical module transmission data is inconsistent, calling terminal is passed according to calling terminal by the second optical module The maximum rate of transmission of data and the called end are smaller in the maximum rate by the first optical module transmission data Maximum rate be adjusted or configure.
When calling terminal passes through the first optical module by the maximum rate and called end that the second optical module transmits data When the maximum rate of transmission data is consistent, calling terminal transmits data according to calling terminal by the second optical module Maximum rate is configured.
Using the method for self-adaptative adjustment different rates device port provided in an embodiment of the present invention, by with The combination that fixed frequency opens or closes the luminous enable of the second optical module sends handshake communication code, and The handshake communication for sending code is received by fixed frequency, and returns to answer back code, set up docking different rates light Communication between module terminal device, obtains the speed of opposite equip. by way of request and response, real The communication between the terminal device for setting up docking different rates is showed, self adaptation docking different rates two ends set Standby port UP.Meanwhile, realizing terminal device can be with most fast rate transmissioning data.
Alternatively, in embodiments of the present invention, communicated as shown in figure 5, being sent to called end in calling terminal Before handshake code, methods described 400 also includes:
S401, calling terminal determines whether there is signal in place, that is, determine whether that optical module is inserted.
S402, when there is signal in place, when having optical module to insert in other words, initializes to optical module, For example, to the mode of operation of optical module, optical module transmits the speed of data, or long-distance transmissions are also It is that the information such as short-distance transmission are configured.
S403, calling terminal sends idle code streams to called end.
S404, called end receives idle code streams, and according to the idle code streams that receive consult calling terminal and The port UP of called end, i.e., the port for consulting calling terminal and called end by standard agreement connects, for example, By optical module speed, the pattern of optical module, the information such as long-distance data transmission or short-distance transmission data Hold consultation, determine whether the port of calling terminal and called end can be with UP.
S405, when it is determined that the port of calling terminal and called end cannot be in the case of UP, calling terminal determines whether time-out, The time threshold beyond presetting transmission idle code streams is determined whether, if without departing from calling terminal continues Send idle code streams;If having exceeded presetting time threshold, the S410 of the embodiment of the present invention is carried out To S490.
It should be understood that in various embodiments of the present invention, the size of the sequence number of above-mentioned each process is not intended to The priority of execution sequence, the execution sequence of each process should be determined with its function and internal logic, without answering Implementation process to the embodiment of the present invention constitutes any restriction.
Fig. 6 is a kind of structural representation of equipment provided in an embodiment of the present invention.The equipment can apply to On the calling terminal 110 of Fig. 1.The equipment 500 can include:Transmitting element 510, receiving unit 520, With adjustment unit 530.
Transmitting element 510, for sending communication handshake code with first frequency, communication handshake code is for indicating quilt End is made to return to answer back code, wherein, communication handshake code and answer back code are presetting signal;
Transmitting element 510 is additionally operable to, and when receiving unit 520 receives answer back code, is set up with called end Communication connection, and acquisition rate request is sent to called end, for called end according to acquisition rate request First rate information is sent to calling terminal, the first rate information is used to determine that called end passes through the first optical mode Block transmits the rate information of data;
Receiving unit 520 is used for, and receives first rate information;
Adjustment unit 530, for transmitting data by the second optical module according to first rate information adjusting device Speed.
When the equipment is inconsistent by the speed that optical module transmits data with called end, the transmission of the equipment Unit 510 by the way that with first frequency, i.e., presetting fixed frequency sends communication handshake code to called end, Communication handshake code is received in order to called end, answer back code is sent to the equipment.Wherein, communication handshake code Be distinctive signal set in advance with answer back code, for set up the equipment and called end port UP it is close Code is in other words " secret signal ".
Preferably, in embodiments of the present invention, the equipment 500 can also include determining unit 540.When connecing Receipts unit is received after answer back code, and determining unit 540 is verified to answer back code, it is determined that receive Answer back code is presetting answer back code.It is and called when the answer back code for receiving is presetting answer back code Communication connection is set up at end.Transmitting element 510 sends to called end and obtains rate request, and the acquisition speed please It can be the request for obtaining the rate information that called end transmits data by the first optical module to ask, it may also be said to The request of the rate information of called end transmission data and the rate information of the first optical module transmission data is obtained, For called end corresponding rate information is sent according to rate request is obtained to the equipment.Wherein, it is called The rate information and first of data is transmitted by called end by the rate information that the first optical module transmits data in end The rate information of optical module transmission data determines.
After receiving unit 520 receives the rate information, adjustment unit 530 is adjusted according to the rate information The equipment optical module transmits the speed of data, further carries out phy chip according to the rate information after adjustment With the configuration of exchange chip, to realize the UP of the equipment and called end port.
Based on equipment provided in an embodiment of the present invention, handshake communication code is sent by with fixed frequency, and lead to Cross fixed frequency and receive the handshake communication code for sending, and return to answer back code, set up docking different rates two ends Communication between equipment, obtains the speed of opposite equip. optical module by way of asynchronous communication, realizes The communication set up between the terminal device of docking different rates, self adaptation docking different rates terminal device Port UP.
Alternatively, as another embodiment of the present invention, transmitting element 510 is specifically for logical with first frequency The combination for crossing the luminous enable for opening or closing the first optical module sends communication handshake code.
In embodiments of the present invention, first frequency is presetting fixed frequency.Communication handshake code is default The signal of fixed a kind of luminous enable for opening or closing the first optical module, it can be understood as in real life A kind of mode of the optical signal for producing is opened or closed to flashlight.
Preferably as another embodiment of the present invention, the adjustment unit specifically for,
The speed that second optical module transmits data is adjusted according to first rate information;
The speed adjust equipment of the second optical module transmission data after according to adjustment is transmitted by the second optical module The speed of data.
Preferably as another embodiment of the present invention, first rate information includes called end transmission data Second rate information and the first optical module transmit the rate information of data, and the equipment also includes determining unit, Rate information for transmitting data according to the second rate information and the first optical module, determines that called end passes through First optical module transmits the rate information of data;Adjustment unit is transmitted according to called end by the first optical module The rate information of data adjusts the speed that the second optical module transmits data.
Alternatively, as another embodiment of the present invention, determining unit 540 is additionally operable to determine that calling terminal passes through The maximum rate of the second optical module transmission data transmits the maximum speed of data with called end by the first optical module Whether rate is consistent.
Adjusting module is specifically for when determining unit 540 determines that calling terminal transmits number by the second optical module According to maximum rate and called end by maximum rate that the first optical module transmits data it is inconsistent when, adjustment Unit 530 passes through first according to calling terminal by the maximum rate and called end that the second optical module transmits data Less maximum rate adjusts the speed that the second optical module transmits data in the maximum rate of optical module transmission data Rate.
When determining unit 540 determines that calling terminal is transmitted the maximum rate of data and be called by the second optical module When holding the maximum rate for passing through the first optical module transmission data consistent, adjustment unit 530 is logical according to calling terminal The maximum rate for crossing the second optical module transmission data adjusts the speed that the second optical module transmits data.
The maximum rate for transmitting data by obtaining called end in embodiments of the present invention adjusts itself optical module The maximum rate of data is transmitted, in the case of the port UP for ensureing to realize calling terminal and called end, is realized The transmission data of calling terminal and called end most rapid rate.
It should be noted that adjustment unit 530 and determining unit in the equipment 500 of the embodiment of the present invention 540 can be realized by the processor 114 shown in Fig. 1, and modules in the equipment 500 Above and other operation and/or function respectively in order to realize the corresponding steps of each method in Fig. 4, in order to Succinctly, repeat no more herein.
Fig. 7 is a kind of structural representation of equipment provided in an embodiment of the present invention.The equipment can apply to On the calling terminal 120 of Fig. 1.The equipment 600 can include:Receiving unit 610, transmitting element 620;
Receiving unit 610 is used for, and receives the communication handshake code that calling terminal is sent with first frequency;
Transmitting element 620, for according to communication handshake code, answer back code being returned to calling terminal, for caller Communication connection is set up in end according to answer back code and the equipment, and obtains rate request to equipment transmission, wherein, Communication handshake code and answer back code are presetting signal;
Receiving unit 610 is additionally operable to, and receives and obtains rate request;
Transmitting element 620 is additionally operable to, and equipment optical module biography is sent to calling terminal according to rate request is obtained The first rate information of transmission of data, the first rate information is used to determine that called end is passed by the first optical module The rate information of transmission of data, adjusts calling terminal and passes through the second light for calling terminal according to first rate information The speed of module transfer data.
In embodiments of the present invention, as shown with 7, the equipment 600 can also include determining unit 630.
The receiving unit 610 of the equipment receives the communication handshake code that calling terminal sends.Determining unit 630 pairs Receive communication handshake code verified, determine the communication handshake code whether be that the communication for prestoring is held Hand code, when it is determined that communication handshake code is for presetting communication handshake code, transmitting element 620 is to caller End sends answer back code, and answer back code checking is carried out according to answer back code is received for calling terminal, works as answer back code During for presetting answer back code, it is communicatively coupled with the equipment, and acquisition speed is sent to the equipment and is asked Ask.The acquisition rate request can be to obtain the speed range request of equipment optical module transmission data, It can be the maximum rate request for obtaining equipment optical module transmission data.
Receiving unit 610 is received and obtains rate request.Transmitting element 620 is according to acquisition rate request to master End is made to send the information of the equipment transmission data, the rate information can transmit data for the equipment optical module Speed range and the equipment transmission data rate information, or the equipment can transmit data Maximum rate, the speed that itself optical module transmits data is adjusted for calling terminal according to rate information, and Configured, to realize the UP of the equipment and calling terminal port.
Alternatively, as another embodiment of the present invention, receiving unit 610 is specific specifically for receiving unit For receiving calling terminal with first frequency by opening or closing the combination of the luminous enable of the second optical module The communication handshake code that mode sends.
In embodiments of the present invention the maximum speed that the equipment optical module transmits data is sent by calling terminal Rate, to realize that calling terminal adjusts the maximum rate that itself optical module transmits data, is ensureing to realize calling terminal In the case of the port UP of the equipment, the transmission data of calling terminal and called end most rapid rate are realized.
It should be understood that in embodiments of the present invention, as shown in figure 8, the equipment 600 can also include adjustment Unit 640, with by the work Pattern completion port UP of enjoying a double blessing of the equipment and calling terminal.
Professional should further appreciate that, be described with reference to the embodiments described herein The unit and algorithm steps of each example, can be come with electronic hardware, computer software or the combination of the two Realize, in order to clearly demonstrate the interchangeability of hardware and software, in the above description according to function Generally describe the composition and step of each example.These functions are come with hardware or software mode actually Perform, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel can be to every Described function is realized in individual specific application using distinct methods, but it is this realize it is not considered that It is beyond the scope of this invention.
The step of method or algorithm for being described with reference to the embodiments described herein, can use hardware, treatment The software module that device is performed, or the two combination is implemented.Software module can be placed in random access memory (RAM), internal memory, read-only storage (ROM), electrically programmable ROM, electrically erasable ROM, Known any other form in register, hard disk, moveable magnetic disc, CD-ROM or technical field Storage medium in.
Above-described specific embodiment, is carried out to the purpose of the present invention, technical scheme and beneficial effect Further describe, should be understood that the foregoing is only specific embodiment of the invention and , the protection domain being not intended to limit the present invention, it is all within the spirit and principles in the present invention, done Any modification, equivalent substitution and improvements etc., should be included within the scope of the present invention.

Claims (24)

1. a kind of method of self-adaptative adjustment different rates device port, it is characterised in that methods described bag Include:
Calling terminal sends communication handshake code with first frequency, and the communication handshake code is for indicating called end to return Answer back code is returned, wherein, the communication handshake code and the answer back code are presetting signal;
When the calling terminal receives the answer back code, set up with the called end and communicated to connect, and to The called end sends and obtains rate request, for the called end according to the acquisition rate request to The calling terminal sends first rate information, and the first rate information is used to determine that called end passes through first Optical module transmits the rate information of data;
The calling terminal receives the first rate information;
The calling terminal is adjusted the calling terminal and is transmitted by the second optical module according to the first rate information The speed of data.
2. method according to claim 1, it is characterised in that the calling terminal is sent out with first frequency Communication handshake code is sent, including:The calling terminal is with first frequency by opening or closing second optical mode The combination of the luminous enable of block sends communication handshake code.
3. method according to claim 1 and 2, it is characterised in that the calling terminal is according to First rate information adjusts the speed that the calling terminal transmits data by the second optical module, including:
The calling terminal adjusts the speed that second optical module transmits data according to the first rate information Rate;
The calling terminal according to adjustment after the second optical module transmission data speed adjust described in calling terminal pass The speed of transmission of data.
4. method according to claim 3, it is characterised in that the first rate information includes quilt It is the second rate information of end transmission data and the rate information of the first optical module transmission data, the caller Hold and the speed that second optical module transmits data is adjusted according to the first rate information, including:
The calling terminal is according to second rate information and the speed letter of first optical module transmission data Breath, determines that the called end transmits the rate information of data by the first optical module;
The calling terminal adjusts institute according to the called end by the rate information that the first optical module transmits data State the speed that the second optical module transmits data.
5. method according to claim 3, it is characterised in that the first rate information is called The rate information of end transmission data, the calling terminal adjusts second light according to the first rate information The speed of module transfer data, including:
The calling terminal adjusts institute according to the called end by the rate information that the first optical module transmits data State the speed that the second optical module transmits data.
6. the method according to claim 4 or 5, it is characterised in that in the calling terminal according to institute State called end and the second optical module transmission data are adjusted by the rate information that the first optical module transmits data Speed before, methods described also includes:The calling terminal determines that calling terminal is transmitted by the second optical module Whether the maximum rate of data is consistent by the maximum rate that the first optical module transmits data with called end.
7. method according to claim 6, it is characterised in that when the calling terminal determines calling terminal The maximum rate of data is transmitted by the second optical module and called end transmits data most by the first optical module When speed is inconsistent greatly, the calling terminal transmits data most according to the calling terminal by the second optical module Less maximum rate in the maximum rate that big speed and the called end pass through the first optical module transmission data Adjust the speed that second optical module transmits data.
8. method according to claim 1, it is characterised in that communicated being set up with the called end Before connection, methods described also includes:
The calling terminal determines whether the answer back code for receiving is correct.
9. the method according to right 8, it is characterised in that when the calling terminal receives the response When code is for correct answer back code, methods described also includes:The calling terminal stops sending communication handshake code.
10. a kind of method of self-adaptative adjustment different rates device port, it is characterised in that methods described Including:
Called end receives the communication handshake code that calling terminal is sent with first frequency;
The called end returns to answer back code, for institute according to communication handshake code to the calling terminal State calling terminal and communication connection is set up according to the answer back code and the called end, and sent to the called end Rate request is obtained, wherein, the communication handshake code and the answer back code are presetting signal;
The called end receives the acquisition rate request;
The called end sends first rate information, institute according to the acquisition rate request to the calling terminal State first rate information for determine called end by the first optical module transmit data rate information, with The calling terminal is adjusted according to the first rate information in the calling terminal number is transmitted by the second optical module According to speed.
11. methods according to claim 10, it is characterised in that the called end receives calling terminal The communication handshake code sent with first frequency, including:It is logical with first frequency that the called end receives calling terminal Cross the communication handshake code that the combination of the luminous enable for opening or closing second optical module sends.
12. method according to claim 10 or 11, it is characterised in that the called end according to The communication handshake code, answer back code is returned to the calling terminal, including:
The called end determines that the communication handshake code is presetting communication handshake code;
When the handshake code is presetting communication handshake code, the called end is returned to the calling terminal Answer back code.
13. a kind of equipment, it is characterised in that the equipment includes:Transmitting element, receiving unit and tune Whole unit;
The transmitting element, for sending communication handshake code with first frequency, the communication handshake code is used for Called end is indicated to return to answer back code, wherein, the communication handshake code and the answer back code are presetting letter Number;
The transmitting element is additionally operable to, when the receiving unit receives the answer back code, with the quilt Make end set up communication connection, and acquisition rate request is sent to the called end, for the called end First rate information, the first rate information are sent to the calling terminal according to the acquisition rate request For determining that called end transmits the rate information of data by the first optical module;
The receiving unit is additionally operable to, and receives the first rate information;
The adjustment unit, the second optical mode is passed through for adjusting the equipment according to the first rate information Block transmits the speed of data.
14. equipment according to claim 13, it is characterised in that the transmitting element specifically for Communication is sent by opening or closing the combination of the luminous enable of second optical module with first frequency Handshake code.
15. equipment according to claim 13 or 14, it is characterised in that the adjustment unit tool Body is used for,
The speed that second optical module transmits data is adjusted according to the first rate information;
Equipment described in the speed adjust of the second optical module transmission data after according to adjustment passes through the second optical module Transmit the speed of data.
16. equipment according to claim 15, it is characterised in that the first rate information includes Second rate information and the first optical module of called end transmission data transmit the rate information of data, described to set It is standby also to include determining unit, for according to second rate information and first optical module transmission data Rate information, determine the called end by the first optical module transmit data rate information;
The adjustment unit is adjusted according to the called end by the rate information that the first optical module transmits data Second optical module transmits the speed of data.
17. equipment according to claim 15, it is characterised in that the first rate information be by The rate information of end transmission data, the adjustment unit is made to be passed by the first optical module according to the called end The rate information of transmission of data adjusts the speed that second optical module transmits data.
18. methods according to claim 16, it is characterised in that the determining module is additionally operable to really Determine calling terminal to be transmitted by the first optical module by maximum rate and called end that the second optical module transmits data Whether the maximum rate of data is consistent.
19. equipment according to claim 18, it is characterised in that the adjustment unit specifically for, When the determining unit determines that calling terminal transmits the maximum rate of data by the second optical module and called end leads to Cross the first optical module transmission data maximum rate it is inconsistent when, the adjustment unit is according to the calling terminal The maximum rate and the called end for transmitting data by the second optical module transmit data by the first optical module Maximum rate in less maximum rate adjust the speed that second optical module transmits data.
20. equipment according to claim 13, it is characterised in that
The determining unit also has to be used for, it is determined that whether the answer back code for receiving is correct.
21. equipment according to right 20, it is characterised in that described in being received when the receiving unit When answer back code is correct answer back code, the transmitting element stops sending communication handshake code.
22. a kind of equipment, it is characterised in that the equipment includes:Receiving unit, transmitting element;
The receiving unit is used for, and receives the communication handshake code that calling terminal is sent with first frequency;
The transmitting element, for according to communication handshake code, answer back code being returned to the calling terminal, Set up with the equipment according to the answer back code for the calling terminal and communicated to connect, and to the equipment Send and obtain rate request, wherein, the communication handshake code and the answer back code are presetting signal;
The receiving unit is additionally operable to, and receives the acquisition rate request;
The transmitting element is additionally operable to, and the first speed is sent to the calling terminal according to the acquisition rate request Rate information, the first rate information is used to determine the speed that called end transmits data by the first optical module Information, adjusts the calling terminal and passes through the second light for the calling terminal according to the first rate information The speed of module transfer data.
23. equipment according to claim 22, it is characterised in that the receiving unit specifically for, Calling terminal is received with first frequency by opening or closing the combination side of the luminous enable of second optical module The communication handshake code that formula sends.
24. equipment according to claim 22 or 23, it is characterised in that the equipment also includes Determining unit, for determining that the communication handshake code is presetting communication handshake code;
The transmitting element is specifically for when the handshake code is presetting communication handshake code, to institute State calling terminal and return to answer back code.
CN201510979248.1A 2015-12-22 2015-12-22 The method and apparatus of self-adaptative adjustment different rates device port Pending CN106911388A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510979248.1A CN106911388A (en) 2015-12-22 2015-12-22 The method and apparatus of self-adaptative adjustment different rates device port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510979248.1A CN106911388A (en) 2015-12-22 2015-12-22 The method and apparatus of self-adaptative adjustment different rates device port

Publications (1)

Publication Number Publication Date
CN106911388A true CN106911388A (en) 2017-06-30

Family

ID=59199722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510979248.1A Pending CN106911388A (en) 2015-12-22 2015-12-22 The method and apparatus of self-adaptative adjustment different rates device port

Country Status (1)

Country Link
CN (1) CN106911388A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107592250A (en) * 2017-09-18 2018-01-16 中国航空无线电电子研究所 Based on aviation FC bus multi-velocity self-adapting test equipments
CN109617853A (en) * 2018-10-10 2019-04-12 中域高科(武汉)信息技术有限公司 A kind of gigabit network interface auto-negotiation device and method based on FPGA
CN109889272A (en) * 2019-02-18 2019-06-14 东莞铭普光磁股份有限公司 The method and system of a kind of optical module and its automatic compatible low rate
CN110336615A (en) * 2019-07-12 2019-10-15 迈普通信技术股份有限公司 Information processing method, device and electronic equipment
CN110381596A (en) * 2019-09-02 2019-10-25 北京百佑科技有限公司 Point to point wireless communication control method, device, terminal and readable storage medium storing program for executing
US11210245B2 (en) * 2018-10-09 2021-12-28 EMC IP Holding Company LLC Data transmission techniques between systems having different communication speeds

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035143A (en) * 2006-03-09 2007-09-12 杭州华为三康技术有限公司 Physical layer chip, method for transferring the signal and switcher
CN101616189A (en) * 2009-07-17 2009-12-30 北京星网锐捷网络技术有限公司 A kind of negotiation method of Ethernet port, device and the network equipment
CN102340352A (en) * 2010-07-20 2012-02-01 中兴通讯股份有限公司 Optical interface speed auto-negotiation method and device
CN102447526A (en) * 2010-10-13 2012-05-09 大唐移动通信设备有限公司 Rate adaptation method and device between RRU (Radio Remote Unit) and BBU (Building Base band Unit)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035143A (en) * 2006-03-09 2007-09-12 杭州华为三康技术有限公司 Physical layer chip, method for transferring the signal and switcher
CN101616189A (en) * 2009-07-17 2009-12-30 北京星网锐捷网络技术有限公司 A kind of negotiation method of Ethernet port, device and the network equipment
CN102340352A (en) * 2010-07-20 2012-02-01 中兴通讯股份有限公司 Optical interface speed auto-negotiation method and device
CN102447526A (en) * 2010-10-13 2012-05-09 大唐移动通信设备有限公司 Rate adaptation method and device between RRU (Radio Remote Unit) and BBU (Building Base band Unit)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘祥超: "基于CPRI协议的分布式基站数字接口设计", 《电子科技大学 硕士学位论文》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107592250A (en) * 2017-09-18 2018-01-16 中国航空无线电电子研究所 Based on aviation FC bus multi-velocity self-adapting test equipments
US11210245B2 (en) * 2018-10-09 2021-12-28 EMC IP Holding Company LLC Data transmission techniques between systems having different communication speeds
CN109617853A (en) * 2018-10-10 2019-04-12 中域高科(武汉)信息技术有限公司 A kind of gigabit network interface auto-negotiation device and method based on FPGA
CN109617853B (en) * 2018-10-10 2021-10-26 中域高科(武汉)信息技术有限公司 Gigabit network port auto-negotiation device and method based on FPGA
CN109889272A (en) * 2019-02-18 2019-06-14 东莞铭普光磁股份有限公司 The method and system of a kind of optical module and its automatic compatible low rate
CN109889272B (en) * 2019-02-18 2022-02-15 东莞铭普光磁股份有限公司 Optical module and method and system for automatically compatible low rate thereof
CN110336615A (en) * 2019-07-12 2019-10-15 迈普通信技术股份有限公司 Information processing method, device and electronic equipment
CN110381596A (en) * 2019-09-02 2019-10-25 北京百佑科技有限公司 Point to point wireless communication control method, device, terminal and readable storage medium storing program for executing
CN110381596B (en) * 2019-09-02 2023-04-18 北京百佑科技有限公司 Point-to-point wireless communication control method, device, terminal and readable storage medium

Similar Documents

Publication Publication Date Title
CN106911388A (en) The method and apparatus of self-adaptative adjustment different rates device port
US5659684A (en) Methods and apparatus for interconnecting personal computers (PCs) and local area networks (LANs) using packet protocols transmitted over a digital data service (DDS)
US6081523A (en) Arrangement for transmitting packet data segments from a media access controller across multiple physical links
US5247626A (en) Fddi controller having flexible buffer management
EP3633937B1 (en) Packet transmission method and network device
CN101322357A (en) Explicit flow control in a gigabit/10 gigabit Ethernet system
KR101750053B1 (en) Low power idle signaling for gigabit media independent interfaces operating in legacy modes
EP2378742A1 (en) Method for data communication and device for ethernet
CN104270441A (en) Multi-priority communication method and system of distributed system
CN107579894B (en) FPGA-based EBR1553 bus protocol implementation device
CN102253914A (en) Data transmitting and processing method and device and equipment interface
WO2011150717A1 (en) Implementation method and device for eliminating a communication chip fault
CN108228521A (en) A kind of Serial Communication at High Speed on MS network
CN105847087B (en) Non-implanted formula network intercepting device
US8503474B2 (en) System and method for enhanced physical layer device interface capability for backward support of fast retrain
CN207691852U (en) The protocol conversion device of long-range RS232 protocol signals and Ethernet
CN206620162U (en) A kind of RapidIO and Ethernet modular converter
CN105162792A (en) USB network card and Ethernet data conversion method
CN110493310A (en) A kind of protocol controller and method of software definition
CN102148802A (en) Link negotiation method and distance-enhanced Ethernet equipment
CN210405347U (en) CPE terminal equipment for SD-WAN to provide voice access
CN101192911B (en) A data transmission method and system under time division multiplexing
GB2419440A (en) An adapter for a computer which performs transmission rate conversion and opto-electric conversion on received optical signals
CN103391329A (en) Interface module and method thereof for supporting multiple interface standards
CN209472629U (en) RS422 communication and CAN communication equipment based on PCIE bus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170630

RJ01 Rejection of invention patent application after publication