CN108075937A - A kind of method and apparatus of adaptive network speed matching process - Google Patents
A kind of method and apparatus of adaptive network speed matching process Download PDFInfo
- Publication number
- CN108075937A CN108075937A CN201611009929.6A CN201611009929A CN108075937A CN 108075937 A CN108075937 A CN 108075937A CN 201611009929 A CN201611009929 A CN 201611009929A CN 108075937 A CN108075937 A CN 108075937A
- Authority
- CN
- China
- Prior art keywords
- pcs
- test case
- ethernet port
- state parameter
- parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0002—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0823—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
- H04L43/0894—Packet rate
Abstract
An embodiment of the present invention provides a kind of adaptive network speed matching process, and the first test case is selected in whole test cases of ethernet port, and the test case includes the network type corresponding to transmission rate and the transmission rate that the ethernet port is supported;Communication parameter configuration is carried out to the ethernet port according to first test case;In data transmission procedure, detect the state parameter of the Physical Coding Sublayer (PCS) of the ethernet port, compared with the state parameter of the PCS detected theory state parameter corresponding with first test case, when difference between the state parameter of the PCS detected and the theory state parameter meets preset condition, carried out data transmission with the messaging parameter that the ethernet port is currently configured.The embodiment of the present invention additionally provides a kind of adaptive network speed coalignment.
Description
Technical field
The present invention relates to communication network field more particularly to a kind of method and apparatus of adaptive network speed matching process.
Background technology
According to 802.3 consensus standards of IEEE, under different network speeds, the Physical Coding Sublayer (PCS in physical layer.
Physical Coding Sublayer) sublayer have different implementation methods, such as:(1) 100BASE-X agreements provide, PCS
It is encoded using 4B/5B, passes through Media Independent Interface (MII, Media Independent Interface) interface and media interviews
Control the interconnection of (MAC, Media Access Control) sublayer;(2) 1GBASE-R agreements provide, PCS is encoded using 8bB/10B
Method passes through gigabit Media Independent Interface (GMII, Gigabit Medium Independent Interface) interface and MAC
Sublayer interconnects;(3) 10GBASE-R agreements provide, PCS uses 64B/66B coding methods, passes through 10Gb media independent interfaces
(XGMII, 10Gigabit Media Independent Interface) interface is interconnected with media access control sublayer.Therefore, PCS needs pair
Different transmission rates makes adaptivity adjustment, so adaptive tune can be made to current network speed by being badly in need of one kind in PCS
Whole method.
The content of the invention
It in view of this, can an embodiment of the present invention is intended to provide a kind of method and apparatus of adaptive network speed matching process
Adaptive adjustment is made to current network speed.
In order to achieve the above objectives, the technical solution of the embodiment of the present invention is realized in:
The embodiment of the present invention provides a kind of adaptive network speed matching process, the described method includes:
The first test case is selected in whole test cases of ethernet port, the test case includes the ethernet port institute
Network type corresponding to the transmission rate of support and the transmission rate;
Communication parameter configuration is carried out to the ethernet port according to first test case;
In data transmission procedure, the state parameter of the PCS of the ethernet port is detected, by the shape of the PCS detected
Compared with state parameter theory state parameter corresponding with first test case, the state parameter of the PCS detected and institute
When stating the difference between theory state parameter and meeting preset condition, the messaging parameter being currently configured with the ethernet port carries out
Data transmission.
In said program, the method further includes:
When difference between the state parameter of the PCS detected and the theory state parameter does not meet preset condition,
The second test case is selected in whole test cases of ethernet port;The ethernet port is carried out according to second test case
Communication parameter configuration;And in data transmission procedure, the state parameter of the PCS of the ethernet port is detected, will be detected
PCS state parameter theory state parameter corresponding with second test case compared with, the state of the PCS detected
When difference between parameter and the theory state parameter meets preset condition, with the communication of ethernet port current-configuration
Parameter carries out data transmission, and the difference between the state parameter of the PCS of detection and the theory state parameter does not meet default item
During part, other test cases are selected in whole test cases of ethernet port, until completing communication ginseng for the ethernet port
Whole test cases of number configuration or the ethernet port are all selected.
It is described that communication parameter configuration, bag carry out the ethernet port according to first test case in said program
It includes:According to first test case, code encoding/decoding mode, Reinforced turf mode to PCS, synchronous detection mode, error correction detection mode
Communication parameter configuration is carried out with bit width conversion mode;
It is described that communication parameter configuration is carried out to the ethernet port according to second test case, including:According to described
Second test case, code encoding/decoding mode, Reinforced turf mode to PCS, synchronous detection mode, error correction detection mode and bit width conversion side
Formula carries out communication parameter configuration.
In said program, the state parameter of the PCS includes:Code word synchronization state value;
Difference between the state parameter of the detected PCS and the theory state parameter meets preset condition, bag
It includes:The code word synchronization state value is otherwise, not meet preset condition.
In said program, the state parameter of the PCS includes:Code word synchronization state value, bit error rate judgment value, data decoding
The number of mistake and the number of garbled-reception state value;
Difference between the state parameter of the detected PCS and the theory state parameter meets preset condition, bag
It includes:The code word synchronization state value is the number and garbled-reception true, bit error rate judgment value is no and described data decoding errors
When the sum of number of state value is less than preset value, meets preset condition, otherwise do not meet preset condition.
It is described the first test case to be selected in whole test cases of ethernet port and in ethernet port in said program
Whole test cases in select the second test case, the principle followed is:
The big test case of transmission rate is preferably selected in the test case not being selected.
The embodiment of the present invention also provides a kind of adaptive network speed coalignment, including test case generation module, configuration module
With the first judgment module, wherein:
Test case generation module, for selecting the first test case, the test in whole test cases of ethernet port
Example includes the network type corresponding to transmission rate and the transmission rate that the ethernet port is supported;
Configuration module, for carrying out communication parameter configuration to the ethernet port according to first test case;
First judgment module, in data transmission procedure, detecting that the state of the PCS of the ethernet port is joined
Number, by the state parameter of the PCS detected theory state parameter corresponding with first test case compared with, detected
PCS state parameter and the theory state parameter between difference when meeting preset condition, worked as with the ethernet port
The messaging parameter of preceding configuration carries out data transmission.
In said program, described device further includes:
Second test module, for the difference between the state parameter of the PCS detected and the theory state parameter
When not meeting preset condition, the second test case is selected in whole test cases of ethernet port;According to second test case
Communication parameter configuration is carried out to the ethernet port;And in data transmission procedure, the PCS of the ethernet port is detected
State parameter, the state parameter of the PCS detected theory state parameter corresponding with second test case is compared
Compared with when the difference between the state parameter of the PCS detected and the theory state parameter meets preset condition, with the ether
The messaging parameter that net port is currently configured carries out data transmission, the state parameter of the PCS of detection and the theory state parameter it
Between difference when not meeting preset condition, other test cases are selected in whole test cases of ethernet port, until being described
Ethernet port completes communication parameter configuration or whole test cases of the ethernet port are all selected.
In said program, first judgment module is specifically used for:According to first test case, the encoding and decoding to PCS
Mode, Reinforced turf mode, synchronous detection mode, error correction detection mode and bit width conversion mode carry out communication parameter configuration;
Second judgment module, is specifically used for:According to second test case, code encoding/decoding mode, Reinforced turf to PCS
Mode, synchronous detection mode, error correction detection mode and bit width conversion mode carry out communication parameter configuration.
In said program, first judgment module and second judgment module are specifically used for:
The state parameter of the PCS includes code word synchronization state value;And the code word synchronization state value is otherwise, not meet
Preset condition.
In said program, first judgment module and second judgment module are specifically used for:
The state parameter of the PCS includes, code word synchronization state value, bit error rate judgment value, the number of data decoding errors
With the number of garbled-reception state value;And the code word synchronization state value is true, bit error rate judgment value is no and described data solution
When the sum of the number of code mistake and the number of garbled-reception state value are less than preset value, meet preset condition, otherwise do not meet pre-
If condition.
In said program, first judgment module and second judgment module are specifically used for:In the survey not being selected
The big test case of transmission rate is preferably selected in examination example.
A kind of adaptive network speed matching process provided in an embodiment of the present invention, is selected in whole test cases of ethernet port
With the first test case, the test case is included corresponding to transmission rate and the transmission rate that the ethernet port is supported
Network type;Communication parameter configuration is carried out to the ethernet port according to first test case;In data transmission procedure, inspection
The state parameter of the PCS of the ethernet port is measured, by the state parameter of the PCS detected and pair of first test case
The theory state parameter answered is compared, the difference symbol between the state parameter of the PCS detected and the theory state parameter
When closing preset condition, carried out data transmission with the messaging parameter that the ethernet port is currently configured.In this way, provide a kind of energy
It is enough that the method adaptively adjusted is made to current network speed.
Description of the drawings
Fig. 1 is the realization flow chart of the method for adaptive network speed matching process provided in an embodiment of the present invention;
Fig. 2 is the composition structure diagram of the device of adaptive network speed matching process provided in an embodiment of the present invention;
Fig. 3 is the concrete composition structure diagram of the device of adaptive network speed matching process provided in an embodiment of the present invention;
Fig. 4 is the concrete composition structure diagram of dynamic PCS channel modules provided in an embodiment of the present invention;
Fig. 5 is the operational flow diagram of the device of adaptive network speed matching process provided in an embodiment of the present invention;
Specific embodiment
In the embodiment of the present invention, the first test case, the test case bag are selected in whole test cases of ethernet port
Include the network type corresponding to transmission rate and the transmission rate that the ethernet port is supported;According to the described first test
Example carries out communication parameter configuration to the ethernet port;In data transmission procedure, detect the PCS's of the ethernet port
State parameter, by the state parameter of the PCS detected theory state parameter corresponding with first test case compared with,
When difference between the state parameter of the PCS detected and the theory state parameter meets preset condition, with the Ethernet
The messaging parameter that port is currently configured carries out data transmission.
With reference to embodiment, the present invention is further described in more detail.
An embodiment of the present invention provides a kind of method of adaptive network speed matching process, as shown in Figure 1, the method bag
It includes:
Step 101:The first test case is selected in whole test cases of ethernet port, the test case includes the ether
The network type corresponding to transmission rate and the transmission rate that net port is supported;
There are many transmission rates of Ethernet, such as:10Mbps, 100Mbps, 1000Mbps etc..Each different rate
One or more network types will be corresponding with, for example, 10Mbps is corresponding with 10base-T etc., 100Mbps is corresponding with
100base-TX, 100base-FX etc., 1000Mbps are corresponding with 1000base-T etc.;In practice, regular ethernet port is all
It can support a variety of rates, therefore, a transmission rate has been possible to multiple test cases, such as:Transmission rate 100Mbps just has
A variety of test cases such as 100Mbps 100base-TX and 100Mbps 100base-FX need to carry out respectively to this variety of test case
Test.
In this step, as soon as being in the test case supported the ethernet port test case to be selected to test,
It is possible that the transmission rate for test case occur is not equal to the current actual transfer rate of the ethernet port or network type differs
In the situation of the presently used network type of the ethernet port.
Step 102:Communication parameter configuration is carried out to the ethernet port according to first test case;
The corresponding transmission rate of the first test case and network type are obtained, obtains related transmission rate in Ethernet protocol
With the messaging parameter of network type, so as to the ethernet port carry out communication parameter configuration so that the ethernet port with
The corresponding transmission rate of first test case and network type carry out data transmission.
In this step, it is necessary to state by PCS after completing to carry out the ethernet port communication parameter configuration
Register is emptied zero setting.
Step 103:In data transmission procedure, the state parameter of the PCS of the ethernet port is detected, by what is detected
Compared with the state parameter of PCS theory state parameter corresponding with first test case, the state ginseng of the PCS detected
When several differences between the theory state parameter meet preset condition, the communication being currently configured with the ethernet port is joined
Number carries out data transmission.
PCS is in physical layer, and PCS is located at RS (Reconciliation Sublayer, reconciliation sublayer) and PMA
Between (Physical Medium Attachment physical mediums access sublayer).PCS is responsible for the ether by improving definition
Net MAC functions are mapped to the function of existing coding and physical layer signal system up.For different transmission rate and network
Type, PCS need different implementation methods, such as:Decoding method, scrambling de-scrambling method, synchronization detecting method, error correction detection
Method etc..When the corresponding transmission rate of the first test case is actual not equal in the ethernet port current transmission data procedures
When transmission rate or network type are not equal to the situation of the presently used network type of the ethernet port, the state ginseng of PCS
Number is present with some exceptions;Therefore, can using the state parameter of PCS come judge the transmission rate in the first test case whether etc.
Whether the network type in the current actual transfer rate of the ethernet port, the first test case, which is equal to the ethernet port, is worked as
Network type used in preceding.This method have the advantages that it is simple, facilitate accuracy rate high.
In the embodiment of the present invention, the adaptive network speed matching process further includes:The state parameter of the PCS detected and institute
When stating the difference between theory state parameter and not meeting preset condition, second is selected to survey in whole test cases of ethernet port
Try example;Communication parameter configuration is carried out to the ethernet port according to second test case;And in data transmission procedure, inspection
The state parameter of the PCS of the ethernet port is measured, by the state parameter of the PCS detected and pair of second test case
The theory state parameter answered is compared, the difference symbol between the state parameter of the PCS detected and the theory state parameter
When closing preset condition, carried out data transmission with the messaging parameter that the ethernet port is currently configured, the state ginseng of the PCS of detection
When several difference between the theory state parameter do not meet preset condition, selected in whole test cases of ethernet port
Other test cases, until completing whole test cases of communication parameter configuration or the ethernet port for the ethernet port
All it is selected.
Here, when the state parameter of the PCS detected occurs abnormal, it is possible to judge, the biography in the first test case
Defeated rate is not equal to the network type in the current actual transfer rate of the ethernet port or the first test case not equal to should be with
Net very much the presently used network type in port;Then at this time, it is also necessary to continue to test, i.e., be supported from ethernet port
Transmission rate reselection goes out a test case, is tested again, repeats above test, until the state parameter of PCS it is normal or
All test cases are all completed.
It is described that ethernet port progress messaging parameter is matched somebody with somebody according to first test case in the embodiment of the present invention
It puts, including:According to first test case, code encoding/decoding mode, Reinforced turf mode to PCS, synchronous detection mode, error correction detection
Mode and bit width conversion mode carry out communication parameter configuration;
It is described that communication parameter configuration is carried out to the ethernet port according to second test case, including:According to described
Second test case, code encoding/decoding mode, Reinforced turf mode to PCS, synchronous detection mode, error correction detection mode and bit width conversion side
Formula carries out communication parameter configuration.
In ethernet port, when transmission rate or network type difference, PCS needs different implementation methods;Therefore,
When configuring different transmission rates to ethernet port or during network type, it is necessary to make adaptivity adjustment to PCS.
In the embodiment of the present invention, the state parameter of the PCS includes:Code word synchronization state value;
Difference between the state parameter of the detected PCS and the theory state parameter meets preset condition, bag
It includes:The code word synchronization state value is otherwise, not meet preset condition.
Code word synchronization state value (block_lock) is Boolean type, is drawn when PCS meets block from the PMA code words received
Timesharing, code word synchronization state value be it is true, representated by be meant that receive code word synchronous regime.Different transmission rates corresponds to
Different synchronous testing mechanisms, is mainly had:8b 10b encoding and decoding synchronous detection, 64b 66b encoding and decoding synchronous detection,
The synchronous detection of FEC and the synchronous detection of RS-FEC etc.;If PCS irregular workings, the meeting when carrying out these synchronization mechanisms
Generation mistake, i.e. code word synchronization state value can be set as no.
In the embodiment of the present invention, the state parameter of the PCS includes:Code word synchronization state value, bit error rate judgment value, data
The number of decoding error and the number of garbled-reception state value;
Difference between the state parameter of the detected PCS and the theory state parameter meets preset condition, bag
It includes:The code word synchronization state value is the number and garbled-reception true, bit error rate judgment value is no and described data decoding errors
When the sum of number of state value is less than preset value, meets preset condition, otherwise do not meet preset condition.
Here, bit error rate judgment value is Boolean type;When bit error rate is more than 10^-4, bit error rate judgment value at this time
It is set as no.With this, it can judge whether PCS is working properly using bit error rate judgment value.
A function of PCS is exactly encoding and decoding, such as:8b 10b encoding and decoding, 64b 66b encoding and decoding etc., in this decoding
During be present with mistake;Therefore it can judge whether PCS is working properly using data decoding errors number.
When PCS receives code word, use state value is understood to represent the working condition of PCS;And the state value of PCS is RX_E
When, mistake has occurred with regard to representing;Therefore, time that the state value that the number of garbled-reception state value could be provided as PCS is RX_E
Number, the number of garbled-reception state value judge whether PCS is working properly.
It is described the first test case to be selected in whole test cases of ethernet port and in Ethernet in the embodiment of the present invention
The second test case is selected in whole test cases of port, the principle followed is:It is preferably selected in the test case not being selected
The big test case of transmission rate.
Can be with negotiated speed between ethernet port, the maximum transmitted that the principle of negotiation is preferentially all supported using both sides is fast
Rate.Therefore, in order to reduce the number of test, preferentially trial big transmission rate can be worth.
It, should in the course of work of ethernet port an embodiment of the present invention provides a kind of adaptive network speed matching process
Method can attempt the test case supported using the ethernet port to carry out communication parameter configuration to ethernet port, send
During data, several state parameters of PCS are obtained, then judge whether PCS works normally using these state parameters;
It is if working properly, then it represents that messaging parameter at this time meets the Ethernet net port, otherwise also needs to obtain the survey do not tested
Examination example continues to test.
An embodiment of the present invention provides a kind of adaptive network speed coalignment, including test case generation module 1, configuration module
2 and first judgment module 3, wherein:
Test case generation module 1, for selecting the first test case, the test in whole test cases of ethernet port
Example includes the network type corresponding to transmission rate and the transmission rate that the ethernet port is supported;
There are many transmission rates of Ethernet, such as:10Mbps, 100Mbps, 1000Mbps etc..Each different rate
One or more network types will be corresponding with, for example, 10Mbps is corresponding with 10base-T etc., 100Mbps is corresponding with
100base-TX, 100base-FX etc., 1000Mbps are corresponding with 1000base-T etc.;In practice, regular ethernet port is all
It can support a variety of rates, therefore, a transmission rate has been possible to multiple test cases, such as:Transmission rate 100Mbps just has
A variety of test cases such as 100Mbps 100base-TX and 100Mbps 100base-FX need to carry out respectively to this variety of test case
Test.
In the module, as soon as it is in the test case supported the ethernet port test case to be selected to test,
It is possible that the transmission rate for test case occur is not equal to the current actual transfer rate of the ethernet port or network type differs
In the situation of the presently used network type of the ethernet port.
Configuration module 2, for carrying out communication parameter configuration to the ethernet port according to first test case;
The corresponding transmission rate of the first test case and network type are obtained, obtains related transmission rate in Ethernet protocol
With the messaging parameter of network type, so as to the ethernet port carry out communication parameter configuration so that the ethernet port with
The corresponding transmission rate of first test case and network type carry out data transmission.
In the module, it is necessary to state by PCS after completing to carry out the ethernet port communication parameter configuration
Register is emptied zero setting.
First judgment module 3, in data transmission procedure, detecting that the state of the PCS of the ethernet port is joined
Number, by the state parameter of the PCS detected theory state parameter corresponding with first test case compared with, detected
PCS state parameter and the theory state parameter between difference when meeting preset condition, worked as with the ethernet port
The messaging parameter of preceding configuration carries out data transmission.
PCS is in physical layer, and PCS is located at RS (Reconciliation Sublayer, reconciliation sublayer) and PMA
Between (Physical Medium Attachment physical mediums access sublayer).PCS is responsible for the ether by improving definition
Net MAC functions are mapped to the function of existing coding and physical layer signal system up.For different transmission rate and network
Type, PCS need different implementation methods, such as:Decoding method, scrambling de-scrambling method, synchronization detecting method, error correction detection
Method etc..When the corresponding transmission rate of the first test case is actual not equal in the ethernet port current transmission data procedures
When transmission rate or network type are not equal to the situation of the presently used network type of the ethernet port, the state ginseng of PCS
Number is present with some exceptions;Therefore, can using the state parameter of PCS come judge the transmission rate in the first test case whether etc.
Whether the network type in the current actual transfer rate of the ethernet port, the first test case, which is equal to the ethernet port, is worked as
Network type used in preceding.Device device have the advantages that it is simple, facilitate accuracy rate high.
In the embodiment of the present invention, described device further includes:
Second test module 4, for the difference between the state parameter of the PCS detected and the theory state parameter
When not meeting preset condition, the second test case is selected in whole test cases of ethernet port;According to second test case
Communication parameter configuration is carried out to the ethernet port;And in data transmission procedure, the PCS of the ethernet port is detected
State parameter, the state parameter of the PCS detected theory state parameter corresponding with second test case is compared
Compared with when the difference between the state parameter of the PCS detected and the theory state parameter meets preset condition, with the ether
The messaging parameter that net port is currently configured carries out data transmission, the state parameter of the PCS of detection and the theory state parameter it
Between difference when not meeting preset condition, other test cases are selected in whole test cases of ethernet port, until being described
Ethernet port completes communication parameter configuration or whole test cases of the ethernet port are all selected.
Here, when the state parameter of the PCS detected occurs abnormal, it is possible to judge, the biography in the first test case
Defeated rate is not equal to the network type in the current actual transfer rate of the ethernet port or the first test case not equal to should be with
Net very much the presently used network type in port;Then at this time, it is also necessary to continue to test, i.e., be supported from ethernet port
Transmission rate reselection goes out a test case, is tested again, repeats above test, until the state parameter of PCS it is normal or
All test cases are all completed.
In the embodiment of the present invention, first judgment module 3 is specifically used for:According to first test case, to PCS's
Code encoding/decoding mode, Reinforced turf mode, synchronous detection mode, error correction detection mode and bit width conversion mode carry out messaging parameter and match somebody with somebody
It puts;
Second judgment module 4, is specifically used for:According to second test case, code encoding/decoding mode plus solution to PCS
Mode, synchronous detection mode are disturbed, error correction detection mode and bit width conversion mode carry out communication parameter configuration.
In ethernet port, when transmission rate or network type difference, PCS needs different implementation methods;Therefore,
When configuring different transmission rates to ethernet port or during network type, it is necessary to make adaptivity adjustment to PCS.
In the embodiment of the present invention, first judgment module 3 and second judgment module 4 are specifically used for:
The state parameter of the PCS includes code word synchronization state value;And the code word synchronization state value is otherwise, not meet
Preset condition.
Code word synchronization state value (block_lock) is Boolean type, is drawn when PCS meets block from the PMA code words received
Timesharing, code word synchronization state value be it is true, representated by be meant that receive code word synchronous regime.Different transmission rates corresponds to
Different synchronous testing mechanisms, is mainly had:8b 10b encoding and decoding synchronous detection, 64b 66b encoding and decoding synchronous detection,
The synchronous detection of FEC and the synchronous detection of RS-FEC etc.;If PCS irregular workings, the meeting when carrying out these synchronization mechanisms
Generation mistake, i.e. code word synchronization state value can be set as no.
In the embodiment of the present invention, first judgment module 3 and second judgment module 4 are specifically used for:
The state parameter of the PCS includes, code word synchronization state value, bit error rate judgment value, the number of data decoding errors
With the number of garbled-reception state value;And the code word synchronization state value is true, bit error rate judgment value is no and described data solution
When the sum of the number of code mistake and the number of garbled-reception state value are less than preset value, meet preset condition, otherwise do not meet pre-
If condition.
Here, bit error rate judgment value is Boolean type;When bit error rate is more than 10^-4, bit error rate judgment value at this time
It is set as no.With this, it can judge whether PCS is working properly using bit error rate judgment value.
A function of PCS is exactly encoding and decoding, such as:8b 10b encoding and decoding, 64b 66b encoding and decoding etc., in this decoding
During be present with mistake;Therefore it can judge whether PCS is working properly using data decoding errors number.
When PCS receives code word, use state value is understood to represent the working condition of PCS;And the state value of PCS is RX_E
When, mistake has occurred with regard to representing;Therefore, time that the state value that the number of garbled-reception state value could be provided as PCS is RX_E
Number, the number of garbled-reception state value judge whether PCS is working properly.
In the embodiment of the present invention, first judgment module 3 and second judgment module 4 are specifically used for:It is not chosen
The big test case of transmission rate is preferably selected in test case.
Can be with negotiated speed between ethernet port, the maximum transmitted that the principle of negotiation is preferentially all supported using both sides is fast
Rate.Therefore, in order to reduce the number of test, preferentially trial big transmission rate can be worth.
It, should in the course of work of ethernet port an embodiment of the present invention provides a kind of adaptive network speed coalignment
Device can attempt the test case supported using the ethernet port to carry out communication parameter configuration to ethernet port, send
During data, several state parameters of PCS are obtained, then judge whether PCS works normally using these state parameters;
It is if working properly, then it represents that messaging parameter at this time meets the Ethernet net port, otherwise also needs to obtain the survey do not tested
Examination example continues to test.
An embodiment of the present invention provides a kind of device of adaptive network speed matching process, as shown in figure 3, it is by with lower module
Composition:
Bit width conversion module, for connecting Serdes interfaces, and by from Serdes interfaces to data carry out bit wide
Conversion, and give the data sending converted to dynamic PCS channel modules;The configuration of control module is received, it is achieved thereby that
The conversion between data bit width needed for the data bit width of Serdes interfaces and Ethernet protocol standard to be tested, and can complete
With the rate-matched between Serdes interfaces;
Dynamic PCS channel modules, for obtaining the operating status of PCS simultaneously (including obtaining code word synchronization state value, the bit error rate
Judgment value, data decoding errors number and garbled-reception state value number etc.) control module is sent to, and according to ether to be tested
FidonetFido standard carries out encoding and decoding, scrambling descrambling, synchronous to detect, error correction detection etc., and by data sending adaptive interface mould
Block;The specific implementation of dynamic PCS channel modules is as shown in Figure 4;
Adaptive interface module for the configuration according to control module, is generated according to Ethernet protocol standard to be tested
Medium independent interface (MII/GMII/XGMII/XLGMII when) signal is (for example, generate MII interface signal standards, 1G in 100M
Shi Shengcheng gmii interface signal standards, generates XGMII interface standards during 25G and 40G, and when 100M generates XLGMII interface standards),
And it is responsible for the data interaction with MAC;
Control module, for selecting ethernet standard to be tested from all ethernet standard agreements, according to be tested
Ethernet protocol standard configures bit wide modular converter, dynamic PCS channel modules and adaptive interface module, by PCS tune
Implementation method as defined in the Ethernet protocol standard;According to from the operating status received by dynamic PCS channel modules
To judge whether PCS works normally.
As shown in figure 5, the device course of work of the adaptive network speed matching process is:
Step 501:Control module obtains test case from list;
Step 502:Control module is according to test case configuration bit wide modular converter, dynamic PCS channel modules and adaptively connects
Mouth mold block;Different test cases descrambles for bit width conversion, encoding and decoding, scrambling, synchronous to detect, and error correction detection etc. has specific
It sets, therefore, it is necessary to carry out adaptivity configuration to these modules;
Step 503:For ethernet port after a period of time is run, dynamic PCS channel modules can obtain the operating status of PCS
(including obtaining code word synchronization state value, bit error rate judgment value, data decoding errors number and garbled-reception state value number etc.)
And it is sent to control module;
Step 504:Judge to receive the value of the synchronous regime of code word, if NO, then operating procedure 506;Otherwise operation step
Rapid 505;
Step 505:Whether the parameters such as bit error rate meet preset condition and (judge bit error rate judgment value in one specified time of monitoring
It is less than preset value for the sum of no and described data decoding errors number and the garbled-reception state value number)If NO, then
Operating procedure 506;Otherwise operating procedure 507;
Step 506:Control module acquisition obtains next test case from list, and PCS status registers are reset;
Step 507:PCS maintains the Ethernet protocol, and reports rate-matched result;
Step 508:PCS carries out data interaction according to the how corresponding Media Independent Interface of the Ethernet protocol and MAC.
In practical applications, the list access modules 1, setup module 2, state acquisition module 3 and judgment module 4 can be with
By central processing unit (CPU, Central Processing Unit), microprocessor (MPU, the Micro of base station server
Processor Unit), digital signal processor (DSP, Digital Signal Processor) or field-programmable gate array
Arrange realizations such as (FPGA, Field Programmable Gate Array).
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, apparatus or computer program
Product.Therefore, the shape of the embodiment in terms of hardware embodiment, software implementation or combination software and hardware can be used in the present invention
Formula.Moreover, the present invention can be used can use storage in one or more computers for wherein including computer usable program code
The form for the computer program product that medium is implemented on (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (device) and computer program product
Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or
The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.
Claims (12)
1. a kind of adaptive network speed matching process, which is characterized in that the described method includes:
The first test case is selected in whole test cases of ethernet port, the test case is supported including the ethernet port
Transmission rate and the transmission rate corresponding to network type;
Communication parameter configuration is carried out to the ethernet port according to first test case;
In data transmission procedure, the state parameter of the Physical Coding Sublayer PCS of the ethernet port is detected, by what is detected
Compared with the state parameter of PCS theory state parameter corresponding with first test case, the state ginseng of the PCS detected
When several differences between the theory state parameter meet preset condition, the communication being currently configured with the ethernet port is joined
Number carries out data transmission.
2. adaptive network speed matching process according to claim 1, which is characterized in that the method further includes:
When difference between the state parameter of the PCS detected and the theory state parameter does not meet preset condition, in ether
It nets in whole test cases of port and selects the second test case;It is communicated according to second test case to the ethernet port
Parameter configuration;And in data transmission procedure, the state parameter of the PCS of the ethernet port is detected, the PCS that will be detected
State parameter theory state parameter corresponding with second test case compared with, the state parameter of the PCS detected
When difference between the theory state parameter meets preset condition, with the messaging parameter of ethernet port current-configuration
Carry out data transmission, when the difference between the state parameter of the PCS of detection and the theory state parameter does not meet preset condition,
Other test cases are selected in whole test cases of ethernet port, are matched somebody with somebody until completing messaging parameter for the ethernet port
It puts or whole test cases of the ethernet port is all selected.
3. adaptive network speed matching process according to claim 2, which is characterized in that
It is described that communication parameter configuration is carried out to the ethernet port according to first test case, including:According to described first
Test case, code encoding/decoding mode, Reinforced turf mode to PCS, synchronous detection mode, error correction detection mode and bit width conversion mode into
Row communication parameter configuration;
It is described that communication parameter configuration is carried out to the ethernet port according to second test case, including:According to described second
Test case, code encoding/decoding mode, Reinforced turf mode to PCS, synchronous detection mode, error correction detection mode and bit width conversion mode into
Row communication parameter configuration.
4. adaptive network speed matching process according to claim 1, which is characterized in that
The state parameter of the PCS includes:Code word synchronization state value;
Difference between the state parameter of the detected PCS and the theory state parameter meets preset condition, including:Institute
Code word synchronization state value is stated otherwise, not meet preset condition.
5. adaptive network speed matching process according to claim 1, which is characterized in that
The state parameter of the PCS includes:Code word synchronization state value, bit error rate judgment value, the number of data decoding errors and mistake
Receive the number of state value by mistake;
Difference between the state parameter of the detected PCS and the theory state parameter meets preset condition, including:Institute
State that code word synchronization state value is true, bit error rate judgment value is the number of no and described data decoding errors and garbled-reception state value
The sum of number when being less than preset value, meet preset condition, otherwise do not meet preset condition.
6. adaptive network speed matching process according to claim 1, which is characterized in that
It is described the first test case to be selected in whole test cases of ethernet port and in whole test cases of ethernet port
The second test case is selected, the principle followed is:
The big test case of transmission rate is preferably selected in the test case not being selected.
7. a kind of adaptive network speed coalignment, which is characterized in that judge including test case generation module, configuration module and first
Module, wherein:
Test case generation module, for selecting the first test case, the test case bag in whole test cases of ethernet port
Include the network type corresponding to transmission rate and the transmission rate that the ethernet port is supported;
Configuration module, for carrying out communication parameter configuration to the ethernet port according to first test case;
First judgment module, will in data transmission procedure, detecting the state parameter of the PCS of the ethernet port
Compared with the state parameter of the PCS detected theory state parameter corresponding with first test case, the PCS that is detected
State parameter and the theory state parameter between difference when meeting preset condition, be currently configured with the ethernet port
Messaging parameter carry out data transmission.
8. adaptive network speed coalignment according to claim 7, which is characterized in that described device further includes:
Second test module is not inconsistent for the difference between the state parameter of the PCS detected and the theory state parameter
When closing preset condition, the second test case is selected in whole test cases of ethernet port;According to second test case to institute
It states ethernet port and carries out communication parameter configuration;And in data transmission procedure, the shape of the PCS of the ethernet port is detected
State parameter, compared with the state parameter of the PCS detected theory state parameter corresponding with second test case, institute
When difference between the state parameter of the PCS of detection and the theory state parameter meets preset condition, with the ethernet side
The messaging parameter that mouth is currently configured carries out data transmission, between the state parameter of the PCS of detection and the theory state parameter
When difference does not meet preset condition, other test cases are selected in whole test cases of ethernet port, until being the ether
Communication parameter configuration is completed in net port or whole test cases of the ethernet port are all selected.
9. adaptive network speed coalignment according to claim 8, which is characterized in that
First judgment module, is specifically used for:According to first test case, code encoding/decoding mode, Reinforced turf side to PCS
Formula, synchronous detection mode, error correction detection mode and bit width conversion mode carry out communication parameter configuration;
Second judgment module, is specifically used for:According to second test case, code encoding/decoding mode, Reinforced turf side to PCS
Formula, synchronous detection mode, error correction detection mode and bit width conversion mode carry out communication parameter configuration.
10. adaptive network speed coalignment according to claim 7, which is characterized in that first judgment module and institute
The second judgment module is stated, is specifically used for:
The state parameter of the PCS includes code word synchronization state value;And the code word synchronization state value is otherwise, not meet default
Condition.
11. adaptive network speed matching process according to claim 7, which is characterized in that first judgment module and institute
The second judgment module is stated, is specifically used for:
The state parameter of the PCS includes, code word synchronization state value, bit error rate judgment value, the number of data decoding errors and mistake
Receive the number of state value by mistake;And the code word synchronization state value is true, bit error rate judgment value is that no and described data decoding is wrong
When the sum of number of number and garbled-reception state value is less than preset value by mistake, meets preset condition, otherwise do not meet default item
Part.
12. adaptive network speed matching process according to claim 7, which is characterized in that
First judgment module and second judgment module, are specifically used for:It is preferably selected in the test case not being selected
The big test case of transmission rate.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611009929.6A CN108075937A (en) | 2016-11-16 | 2016-11-16 | A kind of method and apparatus of adaptive network speed matching process |
PCT/CN2017/091422 WO2018090644A1 (en) | 2016-11-16 | 2017-07-03 | Adaptive network speed matching method and device, and data storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611009929.6A CN108075937A (en) | 2016-11-16 | 2016-11-16 | A kind of method and apparatus of adaptive network speed matching process |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108075937A true CN108075937A (en) | 2018-05-25 |
Family
ID=62146086
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611009929.6A Pending CN108075937A (en) | 2016-11-16 | 2016-11-16 | A kind of method and apparatus of adaptive network speed matching process |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108075937A (en) |
WO (1) | WO2018090644A1 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110719535A (en) * | 2019-09-02 | 2020-01-21 | 北方工业大学 | Adaptive equalization adjustment method for downlink video stream code rate at video source end |
CN111385678A (en) * | 2018-12-29 | 2020-07-07 | 中兴通讯股份有限公司 | Method and device for realizing optical link channel auto-negotiation |
CN111385065A (en) * | 2020-05-29 | 2020-07-07 | 湖南戎腾网络科技有限公司 | Interface rate self-adaption device and method |
CN112821985A (en) * | 2020-12-31 | 2021-05-18 | 珠海格力电器股份有限公司 | Control method and control device of encoder, servo motor and encoder |
WO2022068302A1 (en) * | 2020-09-30 | 2022-04-07 | 华为技术有限公司 | Chip, communication system and communication method |
CN115242627A (en) * | 2022-09-20 | 2022-10-25 | 北京智芯微电子科技有限公司 | Configuration method, system and storage medium of TSN (transmission time network) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113160726B (en) * | 2020-01-03 | 2023-11-14 | 西安诺瓦星云科技股份有限公司 | Power-on self-detection method and power-on self-detection device |
US11463560B2 (en) | 2021-01-20 | 2022-10-04 | Jump Algorithms, Llc | Network interface architecture having a directly modifiable pre-stage packet transmission buffer |
CN113765834B (en) * | 2021-11-05 | 2022-02-25 | 新华三技术有限公司 | Chip, signal recovery device, signal adjustment method and signal recovery method |
CN115714941B (en) * | 2023-01-05 | 2023-04-07 | 北京工蜂电子技术有限公司 | Optical port rate self-adaption method, device, medium and equipment of network communication equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0863640A2 (en) * | 1997-03-04 | 1998-09-09 | Texas Instruments Incorporated | Improved physical layer interface device |
CN101583054A (en) * | 2009-06-12 | 2009-11-18 | 中兴通讯股份有限公司 | Method for realizing that optical interface supports multiple rate patterns by adopting optical module and device |
CN102098814A (en) * | 2009-12-11 | 2011-06-15 | 中兴通讯股份有限公司 | Ethernet port adaptation realization method, network system and network equipment |
CN102355321A (en) * | 2011-06-29 | 2012-02-15 | 中兴通讯股份有限公司 | Multi-rate self-adaption method of communication interface and system |
CN103095367A (en) * | 2013-01-25 | 2013-05-08 | 中兴通讯股份有限公司 | Optical-fiber interface speed self-adapting method and optical-fiber network device |
CN103391329A (en) * | 2013-07-12 | 2013-11-13 | 青岛海信宽带多媒体技术有限公司 | Interface module and method thereof for supporting multiple interface standards |
-
2016
- 2016-11-16 CN CN201611009929.6A patent/CN108075937A/en active Pending
-
2017
- 2017-07-03 WO PCT/CN2017/091422 patent/WO2018090644A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0863640A2 (en) * | 1997-03-04 | 1998-09-09 | Texas Instruments Incorporated | Improved physical layer interface device |
CN101583054A (en) * | 2009-06-12 | 2009-11-18 | 中兴通讯股份有限公司 | Method for realizing that optical interface supports multiple rate patterns by adopting optical module and device |
CN102098814A (en) * | 2009-12-11 | 2011-06-15 | 中兴通讯股份有限公司 | Ethernet port adaptation realization method, network system and network equipment |
CN102355321A (en) * | 2011-06-29 | 2012-02-15 | 中兴通讯股份有限公司 | Multi-rate self-adaption method of communication interface and system |
CN103095367A (en) * | 2013-01-25 | 2013-05-08 | 中兴通讯股份有限公司 | Optical-fiber interface speed self-adapting method and optical-fiber network device |
CN103391329A (en) * | 2013-07-12 | 2013-11-13 | 青岛海信宽带多媒体技术有限公司 | Interface module and method thereof for supporting multiple interface standards |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111385678A (en) * | 2018-12-29 | 2020-07-07 | 中兴通讯股份有限公司 | Method and device for realizing optical link channel auto-negotiation |
EP3890339A4 (en) * | 2018-12-29 | 2022-02-16 | ZTE Corporation | Optical link channel auto-negotiation method and apparatus, computer-readable storage medium |
US11611427B2 (en) | 2018-12-29 | 2023-03-21 | Zte Corporation | Optical link channel auto-negotiation method and apparatus, computer-readable storage medium |
CN111385678B (en) * | 2018-12-29 | 2023-05-12 | 中兴通讯股份有限公司 | Method and device for realizing optical link channel auto-negotiation |
CN110719535A (en) * | 2019-09-02 | 2020-01-21 | 北方工业大学 | Adaptive equalization adjustment method for downlink video stream code rate at video source end |
CN111385065A (en) * | 2020-05-29 | 2020-07-07 | 湖南戎腾网络科技有限公司 | Interface rate self-adaption device and method |
CN111385065B (en) * | 2020-05-29 | 2020-09-11 | 湖南戎腾网络科技有限公司 | Interface rate self-adaption device and method |
WO2022068302A1 (en) * | 2020-09-30 | 2022-04-07 | 华为技术有限公司 | Chip, communication system and communication method |
CN112821985A (en) * | 2020-12-31 | 2021-05-18 | 珠海格力电器股份有限公司 | Control method and control device of encoder, servo motor and encoder |
CN115242627A (en) * | 2022-09-20 | 2022-10-25 | 北京智芯微电子科技有限公司 | Configuration method, system and storage medium of TSN (transmission time network) |
CN115242627B (en) * | 2022-09-20 | 2023-01-24 | 北京智芯微电子科技有限公司 | TSN (traffic service network) configuration method, system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2018090644A1 (en) | 2018-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108075937A (en) | A kind of method and apparatus of adaptive network speed matching process | |
EP3076580B1 (en) | Method and apparatus for scrambling a high speed data transmission | |
CN104639477B (en) | Backward channel communication for express network initialization | |
US8375201B2 (en) | Ethernet PHY level security | |
US11582084B1 (en) | Systems and methods for operations, administration and maintenance (OAM) in the physical coding sublayer (PCS) | |
US8576727B2 (en) | System and method for unique identifier exchange during auto-negotiation | |
EP2820805B1 (en) | Technique for ensuring congruency in link aggregation | |
TW200536715A (en) | System, method and device for autonegotiation | |
US20190108111A1 (en) | Bit error rate prediction | |
WO2006121014A1 (en) | Communication apparatus and switching apparatus | |
WO2017012517A1 (en) | Hybrid physical coding sub-layer and method for transmitting and receiving data, and storage medium | |
EP1720280B1 (en) | Offset test pattern apparatus and method | |
CN103546229B (en) | Serdes speed matching methods and device | |
CN104052698A (en) | Apparatus For Improved Communication And Associated Methods | |
CN104572563B (en) | Physical layer circuit based on the interfaces of IEEE 1394 | |
US20070189171A1 (en) | Network diagnostic systems and methods for transmitting and receiving network messages | |
CN110290020B (en) | High-precision flow percentage generation method and device for Ethernet tester | |
CN107094150A (en) | A kind of NCSI protocol realizations structure and method | |
CN106506265B (en) | Detection fpga chip hangs dead method and device | |
US8918682B2 (en) | Methods for testing network circuitry | |
US9742701B2 (en) | Attachment unit interfaces for non-identical data rate links | |
CN107800584A (en) | The selftest method of second too networked physics layer circuit and selftest system | |
CN104836754A (en) | Method and device for achieving backboard auto-negotiation function by means of high speed Serdes | |
US8331788B2 (en) | Encapsulation scheme for optical over Ethernet | |
CN101729349A (en) | RRPP-based detection method and device for connectivity of main ring access |
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: 20180525 |
|
RJ01 | Rejection of invention patent application after publication |