CN112491632A - System and method for automatically adjusting Ethernet port negotiation mode - Google Patents

System and method for automatically adjusting Ethernet port negotiation mode Download PDF

Info

Publication number
CN112491632A
CN112491632A CN202011473895.2A CN202011473895A CN112491632A CN 112491632 A CN112491632 A CN 112491632A CN 202011473895 A CN202011473895 A CN 202011473895A CN 112491632 A CN112491632 A CN 112491632A
Authority
CN
China
Prior art keywords
port
negotiation
negotiation mode
mode
module
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
CN202011473895.2A
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.)
Anhui Wantong Post And Telecommunications Co ltd
Original Assignee
Anhui Wantong Post And Telecommunications 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 Anhui Wantong Post And Telecommunications Co ltd filed Critical Anhui Wantong Post And Telecommunications Co ltd
Priority to CN202011473895.2A priority Critical patent/CN112491632A/en
Publication of CN112491632A publication Critical patent/CN112491632A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0866Checking the configuration
    • H04L41/0873Checking configuration conflicts between network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a system for automatically adjusting Ethernet port negotiation mode, comprising: the initialization port negotiation mode module is used for setting a port default negotiation mode; the port negotiation state judging module is used for judging whether the current port negotiation is successful or not and whether the port is UP or not; the delay module is used for delaying the next operation and preventing the equipment from being impacted too frequently; the module for setting the port negotiation mode is used for switching the port negotiation mode when the negotiation fails; a method of regulating the above system is also disclosed. The invention solves the problem of incompatibility in the process of realizing the butt joint of new and old equipment by different manufacturers at different time in practical application, avoids manually changing the negotiation mode, greatly improves the butt joint compatibility of the equipment and simplifies the time of successful butt joint. The opening efficiency of the client equipment is improved. And manual field treatment is avoided, and the maintenance cost is saved.

Description

System and method for automatically adjusting Ethernet port negotiation mode
Technical Field
The invention relates to a network communication technology, in particular to a system and a method for automatically adjusting an Ethernet port negotiation mode.
Background
The conventional ethernet port negotiation technique is introduced as follows:
the port auto-negotiation mode is that the port automatically adjusts the speed of the device to the highest working level according to the connection speed and the duplex mode of the device at the other end, namely the fastest speed and the duplex mode which can be possessed by the two ends of the line. 1. The two-end operation mode of the ethernet port (10M half duplex, 10M full duplex, 100M half duplex, 100M full duplex, auto-negotiation) must be set to be consistent. 3. If one end works in a full-duplex mode and the other end works in a half-duplex mode (including auto-negotiated half-duplex mode, the same treatment is also performed), Ping has no problem, no problem exists when the flow is small, and when the flow reaches more than about 15%, collision and packet error occur, which finally affects the working performance! If one end is in fixed mode (no matter 10M, 100M) and the other end is in auto-negotiation mode, even if the negotiation can be successful, the auto-negotiation end can only work in half-duplex mode.
Based on the above scenario, it can be seen that the negotiation of the ethernet port needs to follow the principle that the negotiation modes of the two end devices to be docked have to be consistent, and in practical applications, the default negotiation modes of the ports of each manufacturer are not necessarily consistent, which sometimes results in a situation that the two ends cannot be docked due to one-end forcing and one-end self-adaptation. The invention discloses a method and a system for automatically adjusting an Ethernet port negotiation mode.
Disclosure of Invention
The method and the system for automatically adjusting the negotiation mode of the Ethernet port can solve the problem that the interface can not be UP due to incompatibility in the butt joint of new and old equipment realized by different manufacturers at different time in practical application.
The scheme of the invention is as follows: a system for automatically adjusting an ethernet port negotiation mode, comprising:
the initialization port negotiation mode module is used for setting a port default negotiation mode;
the port negotiation state judging module is used for judging whether the current port negotiation is successful or not and whether the port is UP or not;
the delay module is used for delaying the next operation and preventing the equipment from being impacted too frequently;
and a module for setting the port negotiation mode, which is used for switching the port negotiation mode when the negotiation fails.
A method for adjusting a system for automatically adjusting an Ethernet port negotiation mode includes the following steps:
step 1: initializing a local terminal negotiation mode into a self-adaptive mode;
step 2: judging whether the current interface is UP;
and step 3: if so, ending the processing, otherwise, delaying and continuing the next processing;
and 4, step 4: setting a local terminal negotiation mode as a forced 1G full duplex negotiation mode;
and 5: judging whether the current interface is UP;
step 6: if so, ending the processing, otherwise, delaying and continuing the next processing;
and 7: setting a local terminal negotiation mode as a forced 100M full duplex negotiation mode;
and 8: and judging whether the current interface is UP.
And step 9: if so, ending the processing, otherwise delaying and continuing the next processing.
Step 10: and setting the local terminal negotiation mode as a forced 10M full duplex negotiation mode.
Step 11: and judging whether the current interface is UP.
Step 12: if yes, ending the processing, otherwise, delaying and continuing the processing of the step 1
The invention can realize successful negotiation when the negotiation modes of the equipment at the two ends are not consistent, greatly improves compatibility and improves the success rate of butt joint.
The invention solves the problem of incompatibility in the process of realizing the butt joint of new and old equipment by different manufacturers at different time in practical application, avoids manual change of a negotiation mode, greatly improves the butt joint compatibility of the equipment and simplifies the time of successful butt joint; the opening efficiency of the client equipment is improved. And manual field treatment is avoided, and the maintenance cost is saved.
Drawings
FIG. 1 is a block diagram of modules of the present invention;
fig. 2 is a negotiation flow diagram of the present invention.
Detailed Description
As shown in fig. 1, a system for automatically adjusting negotiation mode of ethernet port of this embodiment includes:
initializing port negotiation mode module, port negotiation state judging module, delaying module and setting port negotiation mode module
The initialization port negotiation mode module is used for setting a port default negotiation mode;
the port negotiation state judging module judges whether the current port negotiation is successful or not and whether the port is UP or not;
the delay module delays the next operation to prevent the equipment from being impacted too frequently;
the port negotiation mode setting module is used for switching the port negotiation mode when the negotiation fails;
as shown in fig. 2, in the method and system for automatically adjusting the negotiation mode of the ethernet port according to the present embodiment, the negotiation process includes:
interface negotiation begins;
initializing a local terminal negotiation mode into a self-adaptive mode;
judging whether the local terminal interface is UP, if so, ending the processing flow;
otherwise, setting a delay timer;
after delaying, switching the home terminal negotiation mode into a forced 1G full duplex negotiation mode;
judging whether the port is UP, if so, ending the processing flow;
otherwise, setting a delay timer;
after delaying, switching the home terminal negotiation mode into a forced 100M full duplex negotiation mode;
judging whether the local terminal interface is UP, if so, ending the processing flow;
otherwise, setting a delay timer;
after delaying, switching the home terminal negotiation mode into a forced 10M full duplex negotiation mode;
judging whether the local terminal interface is UP, if so, ending the processing flow;
otherwise, setting a delay timer;
after delaying, jumping to the initial step to continue the circular processing;
the above steps are circularly processed, after any one of the steps successfully negotiates the port UP, the flow is ended, otherwise, the flow is continuously circulated.
The above-mentioned embodiments are merely illustrative of the preferred embodiments of the present invention, and do not limit the scope of the present invention, and various modifications and improvements of the technical solutions of the present invention by those skilled in the art should fall within the protection scope of the present invention without departing from the design spirit of the present invention.

Claims (2)

1. A system for automatically adjusting an ethernet port negotiation mode, comprising:
the initialization port negotiation mode module is used for setting a port default negotiation mode;
the port negotiation state judging module is used for judging whether the current port negotiation is successful or not and whether the port is UP or not;
the delay module is used for delaying the next operation and preventing the equipment from being impacted too frequently;
and a module for setting the port negotiation mode, which is used for switching the port negotiation mode when the negotiation fails.
2. The method of claim 1, wherein the steps of the system for automatically adjusting the negotiation mode of the ethernet port comprise:
step 1: initializing a local terminal negotiation mode into a self-adaptive mode;
step 2: judging whether the current interface is UP;
and step 3: if so, ending the processing, otherwise, delaying and continuing the next processing;
and 4, step 4: setting a local terminal negotiation mode as a forced 1G full duplex negotiation mode;
and 5: judging whether the current interface is UP;
step 6: if so, ending the processing, otherwise, delaying and continuing the next processing;
and 7: setting a local terminal negotiation mode as a forced 100M full duplex negotiation mode;
and 8: judging whether the current interface is UP;
and step 9: if so, ending the processing, otherwise, delaying and continuing the next processing;
step 10: setting a local terminal negotiation mode as a forced 10M full duplex negotiation mode;
step 11: judging whether the current interface is UP;
step 12: if so, ending the processing, otherwise, delaying and continuing the processing of the step 1.
CN202011473895.2A 2020-12-15 2020-12-15 System and method for automatically adjusting Ethernet port negotiation mode Pending CN112491632A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011473895.2A CN112491632A (en) 2020-12-15 2020-12-15 System and method for automatically adjusting Ethernet port negotiation mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011473895.2A CN112491632A (en) 2020-12-15 2020-12-15 System and method for automatically adjusting Ethernet port negotiation mode

Publications (1)

Publication Number Publication Date
CN112491632A true CN112491632A (en) 2021-03-12

Family

ID=74917859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011473895.2A Pending CN112491632A (en) 2020-12-15 2020-12-15 System and method for automatically adjusting Ethernet port negotiation mode

Country Status (1)

Country Link
CN (1) CN112491632A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043399A (en) * 2006-06-28 2007-09-26 华为技术有限公司 Ethernet duplex mode matching method
US20100118735A1 (en) * 2008-11-12 2010-05-13 Emulex Design & Manufacturing Corporation Large frame path mtu discovery and communication for fcoe devices
CN102223238A (en) * 2010-04-16 2011-10-19 鸿富锦精密工业(深圳)有限公司 Switching equipment and loopback detecting method thereof
CN103178992A (en) * 2011-12-22 2013-06-26 迈普通信技术股份有限公司 Ethernet passive optical network port self-adaptation achievement device and method
CN103222251A (en) * 2012-11-29 2013-07-24 华为技术有限公司 Ether port auto-negotiation and communication equipment
CN107113198A (en) * 2014-09-20 2017-08-29 英诺瓦西克股份有限公司 Ethernet interface module
CN109714276A (en) * 2019-03-11 2019-05-03 盛科网络(苏州)有限公司 A kind of method of adaptive remote equipment negotiation mode
CN111901197A (en) * 2020-07-24 2020-11-06 中车大连电力牵引研发中心有限公司 Ethernet interface mode detection device and detection method
CN111988162A (en) * 2019-05-24 2020-11-24 中兴通讯股份有限公司 Method and device for managing port configuration mode

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043399A (en) * 2006-06-28 2007-09-26 华为技术有限公司 Ethernet duplex mode matching method
US20100118735A1 (en) * 2008-11-12 2010-05-13 Emulex Design & Manufacturing Corporation Large frame path mtu discovery and communication for fcoe devices
CN102223238A (en) * 2010-04-16 2011-10-19 鸿富锦精密工业(深圳)有限公司 Switching equipment and loopback detecting method thereof
CN103178992A (en) * 2011-12-22 2013-06-26 迈普通信技术股份有限公司 Ethernet passive optical network port self-adaptation achievement device and method
CN103222251A (en) * 2012-11-29 2013-07-24 华为技术有限公司 Ether port auto-negotiation and communication equipment
CN107113198A (en) * 2014-09-20 2017-08-29 英诺瓦西克股份有限公司 Ethernet interface module
CN109714276A (en) * 2019-03-11 2019-05-03 盛科网络(苏州)有限公司 A kind of method of adaptive remote equipment negotiation mode
CN111988162A (en) * 2019-05-24 2020-11-24 中兴通讯股份有限公司 Method and device for managing port configuration mode
CN111901197A (en) * 2020-07-24 2020-11-06 中车大连电力牵引研发中心有限公司 Ethernet interface mode detection device and detection method

Similar Documents

Publication Publication Date Title
KR101860234B1 (en) Method for setting link speed of dual port switch
US5596575A (en) Automatic network speed adapter
US5432775A (en) Auto negotiation system for a communications network
CN102204182B (en) Method and apparatus for controlling congestion of data transmission
EP2685760B1 (en) Device, link energy management method and link energy management system for peripheral component interconnect (pci) express
JP2006129487A (en) Tcp flow controlling method in high-speed mobile communications network
TW200517946A (en) Device-side controller, host-side controller, communication controller, usb system, and packet communications method
KR101430032B1 (en) Method for improving a tcp data transmission process in case the physical transmission medium is disconnected
EP1563645A2 (en) System and method for an ieee 802.11 access point to prevent traffic suffering bad link quality from affecting other traffic
US20180219732A1 (en) Negotiation Mode Processing Method and Intelligent Network Device
US8908715B2 (en) Method and system for a high-speed backward-compatible ethernet connector
US7130271B1 (en) Relaying apparatus
CN112491632A (en) System and method for automatically adjusting Ethernet port negotiation mode
US20130250760A1 (en) Communication link with intra-packet flow control
EP3499808A1 (en) Network device and controlling method thereof applicable for mesh networks
KR20020069562A (en) Ethernet system for use in a high speed data communication using a pair of signal lines
CN101931661B (en) Serial bus-based terminal device in streaming media transmission system
CN101299764B (en) Method for backupping broadband access server for PPPOE access service
JP2001156795A (en) Packet flow controller and method
CN112217661A (en) Port mode self-adaption method and device
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210312