CN101345754A - Duplexing pattern matching method and apparatus, communication system - Google Patents

Duplexing pattern matching method and apparatus, communication system Download PDF

Info

Publication number
CN101345754A
CN101345754A CNA2008101186360A CN200810118636A CN101345754A CN 101345754 A CN101345754 A CN 101345754A CN A2008101186360 A CNA2008101186360 A CN A2008101186360A CN 200810118636 A CN200810118636 A CN 200810118636A CN 101345754 A CN101345754 A CN 101345754A
Authority
CN
China
Prior art keywords
port
mode
local
dual
local port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2008101186360A
Other languages
Chinese (zh)
Other versions
CN101345754B (en
Inventor
韦锦驹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Star Net Ruijie Networks Co Ltd
Original Assignee
Beijing Star Net Ruijie Networks 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 Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CN2008101186360A priority Critical patent/CN101345754B/en
Publication of CN101345754A publication Critical patent/CN101345754A/en
Application granted granted Critical
Publication of CN101345754B publication Critical patent/CN101345754B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a duplex mode matching method, apparatus and communicating system. The duplex mode matching method includes: when the local terminal port of the local Ethernet apparatus establishes connection with the remote terminal port of the interconnection remote Ethernet apparatus through parallel detection function, the local Ethernet apparatus transmits request acquiring message to the interconnection remote Ethernet apparatus, and the request acquiring message is used to acquire the duplex mode of the remote terminal port; the local Ethernet apparatus receives response message returned back from the interconnection remote Ethernet apparatus, the response message carries duplex mode information of the remote terminal port; the local Ethernet apparatus identifies the duplex mode of the remote terminal port according to the duplex mode information, and switches the duplex mode of the local terminal port into a mandatory full-duplex mode when the duplex mode of the remote terminal port is the mandatory full-duplex mode. The present invention can effectively realize exactness recognition and matching of duplex modes of both interconnection parties of Ethernet apparatus, without changing the connection mode of the physical connecting lines of the Ethernet interfaces.

Description

Duplexing pattern matching method and device, communication system
Technical field
The present invention relates to the communication technology, especially a kind of duplexing pattern matching method and device, communication system.
Background technology
Ethernet is that (Institute of Electrical andElectronics Engineers is hereinafter to be referred as IEEE) standardized a kind of local area network (LAN) interconnection technique by U.S. electric and Electronic Engineering Association.At present, the Ethernet of mainstream applications connect media mainly be optical fiber and unshielded twisted pair (UnshieldedTwisted Paired, hereinafter to be referred as: UTP) two kinds.Wherein, because optical fiber and laser transceiver cost an arm and a leg, realize that the cost of optical fiber connection is very high, therefore, optical fiber connects the connection that is mainly used in the garden backbone network.Comparatively speaking, UTP is cheap, and easy for installation, therefore, connects (that is: data terminal equipment such as personal computer or data server is linked into the connection of the network switch) field at the desktop to cost sensitivity and has obtained using comparatively widely.
According to IEEE 802.3 standards, auto-negotiation (AutoNegotiation) is arranged, force full duplex (Full Duplex) and force three kinds of mode of operations of half-duplex (HalfDuplex) as the Ethernet of transmission medium with UTP.The full duplex mode of operation is meant, also can receive data when sending data, sends data and carries out with the reception data sync.The half-duplex mode of operation is meant, only allows in the time period to send data or receive data.The ethernet port of semiduplex mode is followed Carrier Sense Multiple Access (the Carrier Sense Multiple Access with Collision Detection of band collision detection, hereinafter to be referred as: CSMA/CD) mechanism, before each data send, detect interconnection the other side earlier and whether sending data, also promptly: whether the port is receiving data, does not only send the other side just to begin to send data under the data conditions.If the port in the process that sends data, finds that interconnection the other side begins to send data suddenly, know that conflict appears in interconnection both sides' data transmit-receive, then the port stops to send data immediately, attempts sending data after waiting for a period of time again again.Sent half and the packet that is stopped transmission is commonly referred to as the crumb data bag at the port.According to CSMA/CD mechanism, conflict must be detected in beginning to send preceding 64 byte times of data, and detected conflict is called as slow conflict (Late Collision) after 64 byte times.It is normal the network of conflict explanation late malunion to occur.
When two ethernet ports of interconnection all are operated in auto negotiation mode following time, the interconnection both sides send interconnection the other side with own to according to keeper's mode of operation information that be provided with, that can support, and receive interconnection the other side passes over, its mode of operation information that can support, according to the algorithm among mode prioritization level and the IEEE802.3, the interconnection both sides are configured to the mode of operation of the peak performance that both sides' port all supports automatically, to guarantee the unanimity of both sides' port working pattern.Because the dual-mode of interconnection both sides port is both sides' a negotiation result, therefore, the interconnection both sides are operated under the identical dual-mode, and both sides' mode of operation is bound to duplexing the coupling.In this case, network connects normal, and data communication is no problem.
When having a port not to be operated in auto-negotiation mode, the interconnection both sides do not transmit own mode of operation information to interconnection the other side port mutually in two ethernet ports of interconnection, but according to working under the mode of operation that oneself is provided with by the keeper.When the port that is set to the auto-negotiation mode of operation and being set to forces the port of diplex operation pattern to connect, no matter what be in the port setting of forcing diplex operation pattern one side is to force the half-duplex mode of operation or force the full duplex mode of operation, because the port that is operated under the auto-negotiation mode of operation is not received the mode of operation information that the other side's port sends, regulation according to the IEEE802.3 standard, be operated in port under the auto-negotiation mode of operation and can start parallel detection (ParallelDetect) function and come to connect, oneself mode of operation is configured to force the half-duplex mode of operation with interconnection the other side port.At this moment, if interconnection the other side is configured to force the full duplex mode of operation, port that interconnection the other side just occurred forces the diplex operation pattern (hereinafter to be referred as unmatched situation dual-mode).
Two port workings that no matter interconnect influence network quality forcing as long as the unmatched situation of dual-mode occurred, serious packet loss phenomenon all can to occur under duplex or the auto-negotiation mode of operation, destroy stability of data transmission.Its reason is to be operated in the CSMA/CD mechanism that the port of forcing under the half-duplex mode of operation is followed Ethernet, do not consider this point and be operated in the other side's port of forcing under the full duplex mode of operation, before sending packet, can not monitor network state, this just makes that being operated in the port of forcing under the full duplex mode of operation when being operated in the port of forcing under the half-duplex mode of operation sends packet through being everlasting sends the action breaks of data, thereby causes packet loss.
In the prior art,, two kinds of solutions have been proposed at the unmatched problem of ethernet port dual-mode.First kind of solution is: transmit interconnection both sides' duplex mode information by two pairs of idle among UTP lines, the coupling of the both sides' dual-mode that guarantees to interconnect.There is following problem at least in this scheme: needs are changed the connected mode of Ethernet interface physical connection line, and the interface after connected mode changes is not followed the IEEE802.3 standard, make this port can not with the ethernet device compatible interconnect of other manufacturer.
Second kind of solution is: the conflict and cyclic redundancy check (the CyclicalRedundancy Check that occur on the monitoring the port, hereinafter to be referred as: mistake bag quantity CRC), if the conflict and the wrong bag of the CRC quantity that monitor on the port have surpassed predefined numerical value in the regular hour, think that then the dual-mode of interconnection both sides port does not match, the pressure half-duplex mode of operation of the port work is switched to force the full duplex mode of operation.Though this scheme does not need to change the connected mode of Ethernet interface physical connection line, but there is following problem at least: comparatively subjective in this scheme to the unmatched basis for estimation of duplex, all be operated at interconnection both sides port and force half-duplex mode of operation following time, if it is very busy that network data is transmitted, the wrong bag of a large amount of conflicts and CRC just may appear on port, if think that at this point interconnection both sides dual-mode does not match, and the port that is operated under the auto-negotiation mode of operation is switched to pressure full duplex mode of operation, make that on the contrary dual-mode does not match, the packet loss phenomenon is even more serious, and network quality and stability of data transmission are poorer.
Summary of the invention
Embodiment of the invention technical problem to be solved is: a kind of duplexing pattern matching method and device, communication system are provided, under the situation of the connected mode of not changing Ethernet interface physical connection line, effectively realize the correct identification and the coupling of interconnection both sides ethernet device port duplex pattern.
For achieving the above object, a kind of duplexing pattern matching method that the embodiment of the invention provides comprises:
When the other side's port of the local port of local ethernet equipment and the other side's ethernet device that interconnects connects by the parallel detection function, described local ethernet equipment is by local port and the other side's port, obtain request message to the transmission of interconnection the other side ethernet device, this obtains the dual-mode that request message is used to obtain described the other side's port;
Local ethernet equipment receives the response message that interconnection the other side ethernet device returns by the other side's port by local port, carries the duplex mode information of described the other side's port in this response message;
Local ethernet equipment is according to the dual-mode of described duplex mode information identification the other side port, and at the dual-mode of described the other side's port when forcing full duplex, the dual-mode of local port switched to forces the full duplex mode of operation.
A kind of dual-mode coalignment that the embodiment of the invention provides comprises:
First sending module is used for by the local port of local ethernet equipment and the other side's port of interconnection the other side ethernet device, sends to interconnection the other side ethernet device and obtains request message, and this obtains the dual-mode that request message is used to obtain described the other side's port;
First receiver module is used for receiving the response message that interconnection the other side ethernet device returns by the other side's port by local port, carries the duplex mode information of described the other side's port in this response message;
Identification module is used for the dual-mode according to described duplex mode information identification the other side port;
Handover module is used for the recognition result according to described identification module,, the dual-mode of local port is switched to force the full duplex mode of operation when forcing full duplex at the dual-mode of described the other side's port.
A kind of communication system that the embodiment of the invention provides comprises local ethernet equipment and interconnection the other side ethernet device, also comprises the dual-mode coalignment that the above embodiment of the present invention provides.
The duplexing pattern matching method and the device that provide based on the above embodiment of the present invention, communication system, when the other side's port of the local port of local ethernet equipment and the other side's ethernet device that interconnects connects by the parallel detection function, local ethernet equipment the unmatched situation of dual-mode may occur with interconnection the other side ethernet device, at this moment, local ethernet equipment can obtain the dual-mode of this other side's port by local port and the other side's port from interconnection the other side ethernet device, do not need to change the connected mode of Ethernet interface physical connection line, but the duplex mode information of returning according to interconnection the other side ethernet device, effectively whether identification interconnection both sides ethernet device port duplex pattern mates, dual-mode at the other side's port is when forcing full duplex, the dual-mode of local port is switched to pressure full duplex mode of operation, realize the correct coupling of interconnection both sides ethernet device port duplex pattern, avoid because the packet loss phenomenon that both sides' port duplex pattern does not match and causes is improved network quality and stability of data transmission.
Below by drawings and Examples, the technical scheme of the embodiment of the invention is described in further detail.
Description of drawings
Fig. 1 is the flow chart of an embodiment of duplexing pattern matching method of the present invention.
Fig. 2 is the flow chart of another embodiment of duplexing pattern matching method of the present invention.
Fig. 3 is the flow chart of another embodiment of duplexing pattern matching method of the present invention.
Fig. 4 is the structural representation of an embodiment of dual-mode coalignment of the present invention.
Fig. 5 is the structural representation of another embodiment of dual-mode coalignment of the present invention.
Fig. 6 is the structural representation of another embodiment of dual-mode coalignment of the present invention.
Fig. 7 is the structural representation of another embodiment of dual-mode coalignment of the present invention.
Fig. 8 is the also structural representation of an embodiment of dual-mode coalignment of the present invention.
Fig. 9 is the structural representation of the unified embodiment of communication system of the present invention.
Embodiment
The embodiment of the invention connects by the parallel detection function at the local port of local ethernet equipment and the other side's port of interconnection the other side ethernet device, thereby may occur under the unmatched situation of dual-mode, can be under the situation of the connected mode of not changing Ethernet interface physical connection line, obtain the duplex mode information of the other side's port on interconnection the other side ethernet device by its local port by local ethernet equipment, effectively discern interconnection both sides ethernet device port duplex pattern and whether mate, and realize the correct coupling of interconnection both sides ethernet device port.Because the connected mode that does not need to change Ethernet interface physical connection line can guarantee effectively that the port of ethernet device meets the IEEE802.3 standard, effectively ensures the compatible interconnect of the ethernet device of this port and other manufacturer.
As shown in Figure 1, be the flow chart of an embodiment of duplexing pattern matching method of the present invention, it may further comprise the steps:
Step 101, when the other side's port of the local port of local ethernet equipment and the other side's ethernet device that interconnects connects by the parallel detection function, local ethernet equipment sends to interconnection the other side ethernet device by local port and the other side's port and obtains request message, and this obtains the dual-mode that request message is used to obtain the other side's port.
Particularly, this obtains request message can be a special packet, for example: obtain packet, wherein can carry the work state information of local port, comprising the duplex mode information of local port, can also comprise the out of Memory such as local port speed that connect.Described response message specifically can be a response data packet, after the other side's port receives the packet of local port transmission, can return the work state information of the other side's port by the form of response data packet to local port, comprising the duplex mode information of the other side's port, can also comprise the out of Memory such as the other side's port speed that connect.
Step 102, local ethernet equipment receive the duplex mode information of the other side's port that interconnection the other side ethernet device returns by the other side's port by local port.
Step 103, local ethernet equipment be according to the dual-mode of duplex mode information identification the other side port, and at the dual-mode of the other side's port when forcing full duplex, the dual-mode of local port switched to forces the full duplex mode of operation.If the dual-mode of the other side's port is for forcing half-duplex, then local port keeps current pressure half-duplex mode of operation to get final product, and does not need to switch dual-mode.
As shown in Figure 2, be the flow chart of another embodiment of duplexing pattern matching method of the present invention, it may further comprise the steps:
Step 201, the local port of local ethernet equipment connects with the other side's port of interconnection the other side ethernet device, and both sides' port can carry out data communication afterwards.
Step 202, the state of local ethernet Equipment Inspection local port judges whether local port and the other side's port connect by the parallel detection function.If both sides' port is to connect by the parallel detection function, then both sides' port may exist the unmatched situation of dual-mode, execution in step 203.If both sides' port is not to connect by the parallel detection function, then there is not the unmatched situation of dual-mode in both sides' port, and network connects normal, does not carry out follow-up flow process.
Step 203, local ethernet equipment send to interconnection the other side ethernet device by local port and the other side's port and obtain packet, and this obtains the dual-mode that packet is used to obtain the other side's port, comprising the work state information of local port.
Step 204, the startup timer carried out timing according to the Preset Time section after local ethernet equipment sent and obtains packet, and judge in the Preset Time section, whether to receive the response data packet that interconnection the other side ethernet device returns, comprise the duplex mode information of the other side's port in this response data packet.If in the Preset Time section, do not receive the response data packet that interconnection the other side ethernet device returns, execution in step 205; Otherwise, if in the Preset Time section, receive the response data packet that interconnection the other side ethernet device returns, execution in step 206.
Local ethernet equipment sends to obtain and promptly starts timer behind the packet and carry out timing according to the Preset Time section, and when in the Preset Time section, not receiving the response data packet that interconnection the other side ethernet device returns, in time pass through alternate manner, for example: whether slow conflict is arranged, discern the mode of operation of the other side's port, thereby realize the coupling of interconnection both sides ethernet device dual-mode, to avoid owing to interconnection the other side ethernet device is not supported the duplex mode information interactive function, can't correctly discern and obtain packet and maybe can't return response data packet, and make interconnection both sides ethernet device can't in time carry out the dual-mode coupling.Step 205, whether local ethernet Equipment Inspection local port has slow conflict, if slow conflict, execution in step 207 are arranged.Otherwise, do not carry out follow-up flow process.According to CSMA/CD mechanism, all be operated at interconnection both sides port and force half-duplex mode of operation following time, conflict must be detected in beginning to send preceding 64 byte times of data.The other side's port still sends data after packet 64 byte times are obtained in the local port transmission, and the dual-mode that detects slow conflict explanation interconnection both sides port does not in this case match, and the mode of operation that can determine the other side's port is for forcing full duplex.Step 206, local ethernet equipment are obtained the duplex mode information of the other side's port and are discerned the dual-mode of the other side's port in view of the above from response data packet, judge whether the dual-mode of the other side's port is to force full duplex.If the dual-mode of the other side's port is for forcing full duplex, execution in step 207.Otherwise if the dual-mode of the other side's port is the pressure half-duplex, then local port keeps current pressure half-duplex mode of operation to get final product, and does not need to switch dual-mode, does not carry out follow-up flow process.
Step 207, local ethernet equipment switches to pressure full duplex mode of operation with the dual-mode of local port.
As shown in Figure 3, be the flow chart of another embodiment of duplexing pattern matching method of the present invention, can be when local port not be supported slow collision detection function, adopt the following flow process of this embodiment to realize the coupling of interconnect port dual-mode:
Step 301, the local port of local ethernet equipment connects with the other side's port of interconnection the other side ethernet device, and both sides' port can carry out data communication afterwards.
Step 302, the state of local ethernet Equipment Inspection local port judges whether local port and the other side's port connect by the parallel detection function.If both sides' port is to connect by the parallel detection function, then both sides' port may exist the unmatched situation of dual-mode, execution in step 303.If both sides' port is not to connect by the parallel detection function, then there is not the unmatched situation of dual-mode in both sides' port, and network connects normal, does not carry out follow-up flow process.
Step 303, local ethernet equipment send to interconnection the other side ethernet device by local port and the other side's port and obtain packet, and this obtains the dual-mode that packet is used to obtain the other side's port, comprising the work state information of local port.
Step 304, the startup timer carried out timing according to the Preset Time section after local ethernet equipment sent and obtains packet, and judge in the Preset Time section, whether to receive the response data packet that interconnection the other side ethernet device returns, comprise the duplex mode information of the other side's port in this response data packet.If in the Preset Time section, do not receive the response data packet that interconnection the other side ethernet device returns, execution in step 305; Otherwise, if in the Preset Time section, receive the response data packet that interconnection the other side ethernet device returns, execution in step 306.
Local ethernet equipment sends to obtain and promptly starts timer behind the packet and carry out timing according to the Preset Time section, and when in the Preset Time section, not receiving the response data packet that interconnection the other side ethernet device returns, in time pass through alternate manner, discern the mode of operation of the other side's port, thereby realize the coupling of interconnection both sides ethernet device dual-mode.
Step 305, the conflict on the local ethernet monitoring of equipment local port and/or the quantity of crumb data bag, and relatively in the quantity of conflict that monitor on the local port, in a period of time and/or crumb data bag whether greater than corresponding, predefined numerical value, if all greater than predefined numerical value, execution in step 307.Otherwise, do not carry out follow-up flow process.
Generally, the length of crumb data bag is less than a certain length, for example: 64 bytes, can detect crisp packet in view of the above.
Step 306, local ethernet equipment are obtained the duplex mode information of the other side's port and are discerned the dual-mode of the other side's port in view of the above from response data packet, judge whether the dual-mode of the other side's port is to force full duplex.If the dual-mode of the other side's port is for forcing full duplex, execution in step 307.Otherwise if the dual-mode of the other side's port is the pressure half-duplex, then local port keeps current pressure half-duplex mode of operation to get final product, and does not need to switch dual-mode, does not carry out follow-up flow process.
Step 307, local ethernet equipment switches to pressure full duplex mode of operation with the dual-mode of local port.
For avoid on the local port owing to dual-mode other reason outside not matching lead to a conflict and/or the quantity of crumb data bag greater than predefined numerical value, in step 307, the dual-mode of local port switched to force the full duplex mode of operation after, can further carry out following operation:
Whether step 308 has the crumb data bag on the local ethernet monitoring of equipment local port.If on local port, still monitor crumb data bag, execution in step 309; Otherwise, do not carry out subsequent operation.
Particularly, in this step 308, be specially monitoring the crumb data bag on the local port: on local port, monitor the crumb data bag, and the quantity of the crumb data bag in a period of time greater than local port is switched to force the full duplex mode of operation before, the quantity of crumb data bag on the local port that monitors by step 305.
Step 309, local ethernet equipment switches back pressure half-duplex mode of operation with the dual-mode of local port.
As shown in Figure 4, structural representation for an embodiment of dual-mode coalignment of the present invention, the dual-mode coalignment of this embodiment can be used for realizing the flow process of embodiment as shown in Figure 1, and it comprises first sending module 401, first receiver module 402, identification module 403 and handover module 404.Wherein, first sending module 401, be used for when the other side's port of the local port of local ethernet equipment and the other side's ethernet device that interconnects connects by the parallel detection function, by local port and the other side's port, obtain request message to the transmission of interconnection the other side ethernet device, this obtains the dual-mode that request message is used to obtain the other side's port.First receiver module 402 is used for receiving by local port the response message of the other side's port that interconnection the other side ethernet device returns by the other side's port, carries duplex mode information in this response message.Identification module 403 is used for the dual-mode of duplex mode information identification the other side port of returning according to interconnection the other side ethernet device.Handover module 404 is used for the recognition result according to identification module 403,, the dual-mode of local port is switched to force the full duplex mode of operation when forcing full duplex at the dual-mode of the other side's port.
In another embodiment of dual-mode coalignment of the present invention, can also comprise timing module 501 and detection module 502.Wherein, timing module 501 can be realized the function of timer as shown in Figure 2, is used for carrying out timing according to the Preset Time section after request is obtained in 401 transmissions of first sending module.Detection module 502, be used for timing result according to timing module 501, when first receiver module 402 does not receive the response message that interconnection the other side ethernet device returns in the Preset Time section, detect local port whether slow conflict is arranged, and when detecting local port slow conflict is arranged, indication handover module 404 switches to the dual-mode of local port and forces the full duplex mode of operation.As shown in Figure 5, be the structural representation of another embodiment of dual-mode coalignment of the present invention.This embodiment can be used for realizing the above-mentioned flow process embodiment illustrated in fig. 2 as the present invention.
Another embodiment as dual-mode coalignment of the present invention compares with embodiment illustrated in fig. 4, also comprises timing module 501 and monitoring modular 601.Wherein, timing module 501 can be realized the function of timer as shown in Figure 3, be used for first sending module 401 send obtain request after, carry out timing according to default a period of time.Monitoring modular 601, be used for timing result according to timing module 501, when first receiver module 402 does not receive the response message that interconnection the other side ethernet device returns in default a period of time, monitoring on the local port conflict and/or with the quantity of crumb data bag, when monitoring conflict and/or the quantity of crumb data bag during greater than corresponding, predefined numerical value of local port in a period of time, indication handover module 404 switches to the dual-mode of local port and forces the full duplex mode of operation.As shown in Figure 6, be the structural representation of another embodiment of dual-mode coalignment of the present invention.This embodiment can be used for realizing the above-mentioned flow process embodiment illustrated in fig. 3 as the present invention.
In the embodiment shown in fig. 6, monitoring modular 601 also be used in handover module 404 with the dual-mode of local port switch to force the full duplex mode of operation after, on the monitoring local port whether the crumb data bag is arranged, when monitoring the crumb data bag on local port, indication handover module 404 switches back pressure half-duplex mode of operation again with the dual-mode of local port.Particularly, monitoring modular 601 can handover module 404 dual-mode of local port is switched to force the full duplex mode of operation after, timing result according to timing module 501, whether the quantity of the crumb data bag of monitoring local port in a period of time is greater than before switching to local port pressure full duplex mode of operation, the quantity of crumb data bag on the local port that monitors, if greater than, indication handover module 404 switches back pressure half-duplex mode of operation again with the dual-mode of local port.
In the dual-mode coalignment that the above-mentioned Fig. 4 of the present invention provides to arbitrary embodiment shown in Figure 6, can also comprise connecting and set up module 701 and judge module 702.Wherein, connect and to set up module 701, be used for local port and the other side's port connects; Judge module 702 is used for according to the state of local port, judging whether local port and the other side's port connect by the parallel detection function after local port and the other side's port connect.As shown in Figure 7, be the structural representation of another embodiment of dual-mode coalignment of the present invention.
Further, in the dual-mode coalignment that the above-mentioned Fig. 4 of the present invention provides to arbitrary embodiment shown in Figure 6, can also comprise memory module 801, second receiver module 802 and second sending module 803.Wherein, memory module 801, the duplex mode information that is used to store the other side's port.Second receiver module 802 is used to receive obtaining request message or obtaining packet of first sending module 401 transmissions.Second sending module 803, be used for second receiver module 802 receive obtain request message or obtain packet after, from memory module 801, obtain the duplex mode information of the other side's port, and send to first receiver module 402 by response message or response data packet.As shown in Figure 8, be the dual-mode coalignment of the present invention structural representation of an embodiment also.
The present invention also provides a kind of communication system, and it comprises local ethernet equipment 1 and interconnection the other side ethernet device 2, also comprises the dual-mode coalignment 3 as the above-mentioned arbitrary embodiment of the present invention.As shown in Figure 9, the structural representation of unifying an embodiment for communication system of the present invention.
Particularly, in communication system embodiment shown in Figure 9, first sending module 401 in the dual-mode coalignment 3, first receiver module 402, identification module 403, handover module 404, timing module 501, detection module 502, monitoring modular 601, connection are set up module 701 and can be arranged in the local ethernet equipment 1 with judge module 702, and memory module 801, second receiver module 802 and second sending module 803 in the dual-mode coalignment 3 is arranged in interconnection the other side ethernet device 2.Wherein, it can be two that module 701 is set up in connection, is separately positioned in local ethernet equipment 1 and the interconnection the other side ethernet device 2.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
The embodiment of the invention can be under the situation of the connected mode of not changing Ethernet interface physical connection line, effectively whether identification interconnection both sides ethernet device port duplex pattern mates, dual-mode at the other side's port is when forcing full duplex, the dual-mode of local port is switched to pressure full duplex mode of operation, realize the correct coupling of interconnection both sides ethernet device port duplex pattern, ensure the compatible interconnect of the ethernet device of this port and other manufacturer, avoid because the packet loss phenomenon that both sides' port duplex pattern does not match and causes is improved network quality and stability of data transmission.
It should be noted last that: above embodiment is only in order to illustrating technical scheme of the present invention, but not the present invention is made restrictive sense.Although the present invention is had been described in detail with reference to above-mentioned preferred embodiment, those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, and this modification or be equal to the spirit and scope that replacement does not break away from technical solution of the present invention.

Claims (10)

1, a kind of duplexing pattern matching method is characterized in that, comprising:
When the other side's port of the local port of local ethernet equipment and the other side's ethernet device that interconnects connects by the parallel detection function, described local ethernet equipment is by local port and the other side's port, obtain request message to the transmission of interconnection the other side ethernet device, this obtains the dual-mode that request message is used to obtain described the other side's port;
Local ethernet equipment receives the response message that interconnection the other side ethernet device returns by the other side's port by local port, carries the duplex mode information of described the other side's port in this response message;
Local ethernet equipment is according to the dual-mode of described duplex mode information identification the other side port, and at the dual-mode of described the other side's port when forcing full duplex, the dual-mode of local port switched to forces the full duplex mode of operation.
2, method according to claim 1, it is characterized in that, described local ethernet equipment by local port to interconnection the other side ethernet device send obtain request message after, also carry out timing, if in the Preset Time section, do not receive the response message that interconnection the other side ethernet device returns, whether have slow conflict, if slow conflict is arranged, then the dual-mode with local port switches to pressure full duplex mode of operation if then detecting local port.
3, method according to claim 1, it is characterized in that, described local ethernet equipment by local port to interconnection the other side ethernet device send obtain request message after, also carry out timing, if in the Preset Time section, do not receive the response message that interconnection the other side ethernet device returns, then monitor the conflict on the local port and/or the quantity of crumb data bag, when monitoring conflict and/or the quantity of crumb data bag during greater than predefined numerical value of local port in a period of time, the dual-mode of local port switched to force the full duplex mode of operation.
4, method according to claim 3, it is characterized in that, with the dual-mode of local port switch to force the full duplex mode of operation after, also comprise: on the described local ethernet monitoring of equipment local port whether the crumb data bag is arranged, if on local port, monitor the crumb data bag, and the quantity of the crumb data bag in described a period of time is greater than before switching to local port pressure full duplex mode of operation, the quantity of crumb data bag on the local port that monitors is switched back the dual-mode of local port and is forced the half-duplex mode of operation.
5, a kind of dual-mode coalignment is characterized in that, comprising:
First sending module, be used for when the other side's port of the local port of local ethernet equipment and the other side's ethernet device that interconnects connects by the parallel detection function, by described local port and the other side's port, obtain request message to the transmission of interconnection the other side ethernet device, this obtains the dual-mode that request message is used to obtain described the other side's port;
First receiver module is used for receiving the response message that interconnection the other side ethernet device returns by the other side's port by local port, carries the duplex mode information of described the other side's port in this response message;
Identification module is used for the dual-mode according to described duplex mode information identification the other side port;
Handover module is used for the recognition result according to described identification module,, the dual-mode of local port is switched to force the full duplex mode of operation when forcing full duplex at the dual-mode of described the other side's port.
6, device according to claim 5 is characterized in that, also comprises:
Timing module, be used for described first sending module send described obtain request message after, carry out timing according to the Preset Time section;
Detection module, be used for timing result according to described timing module, when described first receiver module does not receive the response message that interconnection the other side ethernet device returns in described Preset Time section, detect local port whether slow conflict is arranged, and when detecting local port slow conflict is arranged, indicate described handover module that the dual-mode of local port is switched to and force the full duplex mode of operation.
7, device according to claim 5 is characterized in that, also comprises:
Timing module, be used for described first sending module send described obtain request message after, carry out timing according to default a period of time;
Monitoring modular, be used for timing result according to described timing module, when described first receiver module does not receive the response message that interconnection the other side ethernet device returns in described default a period of time, the conflict on the monitoring local port and/or the quantity of crumb data bag, when monitoring conflict and/or the quantity of crumb data bag during greater than predefined numerical value of local port in a period of time, indicate described handover module that the dual-mode of local port is switched to and force the full duplex mode of operation.
8, device according to claim 7, it is characterized in that, described monitoring modular also be used for described handover module the dual-mode of local port is switched to force the full duplex mode of operation after, on the monitoring local port whether the crumb data bag is arranged, if on local port, monitor the crumb data bag, and the quantity of the crumb data bag in described a period of time is greater than before switching to local port pressure full duplex mode of operation, the quantity of crumb data bag on the local port that monitors indicates described handover module that the dual-mode of local port is switched back pressure half-duplex mode of operation.
9, device according to claim 8 is characterized in that, also comprises:
Memory module, the duplex mode information that is used to store described the other side's port;
Second receiver module is used to receive the described request message that obtains that first sending module sends;
Second sending module, be used for second receiver module receive described obtain request message after, from described memory module, obtain the duplex mode information of described the other side's port and send to described first receiver module by response message.
10, a kind of communication system comprises local ethernet equipment and interconnection the other side ethernet device, it is characterized in that, also comprises as any described dual-mode coalignment of claim 5 to 9.
CN2008101186360A 2008-08-20 2008-08-20 Duplexing pattern matching method and apparatus, communication system Expired - Fee Related CN101345754B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101186360A CN101345754B (en) 2008-08-20 2008-08-20 Duplexing pattern matching method and apparatus, communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101186360A CN101345754B (en) 2008-08-20 2008-08-20 Duplexing pattern matching method and apparatus, communication system

Publications (2)

Publication Number Publication Date
CN101345754A true CN101345754A (en) 2009-01-14
CN101345754B CN101345754B (en) 2011-12-28

Family

ID=40247640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101186360A Expired - Fee Related CN101345754B (en) 2008-08-20 2008-08-20 Duplexing pattern matching method and apparatus, communication system

Country Status (1)

Country Link
CN (1) CN101345754B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045243A (en) * 2009-10-10 2011-05-04 中兴通讯股份有限公司 Method and system for of adaptively recognizing duplex mode of network port of opposite terminal among network devices
CN103199680A (en) * 2013-03-19 2013-07-10 苏州汇川技术有限公司 Serial high-voltage inverter and power unit automatic identifying method
CN103701660A (en) * 2013-12-20 2014-04-02 上海斐讯数据通信技术有限公司 Ethernet equipment connection device and testing system and method applied thereby
CN105227453A (en) * 2015-09-14 2016-01-06 中国联合网络通信集团有限公司 Message forwarding method and device
CN109714276A (en) * 2019-03-11 2019-05-03 盛科网络(苏州)有限公司 A kind of method of adaptive remote equipment negotiation mode
WO2019179376A1 (en) * 2018-03-19 2019-09-26 华为技术有限公司 Switch method for port mode and related devices thereof
CN111901197A (en) * 2020-07-24 2020-11-06 中车大连电力牵引研发中心有限公司 Ethernet interface mode detection device and detection method
WO2021129839A1 (en) * 2019-12-27 2021-07-01 中国移动通信有限公司研究院 Method and equipment for sending interface message

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5907553A (en) * 1997-04-08 1999-05-25 Level One Communications, Inc. Power savings in multiple technology physical layer devices supporting autonegotiation
CN100336361C (en) * 2004-06-07 2007-09-05 中兴通讯股份有限公司 Method for transmitting Ethernet equipment duplex mode information
CN1893420A (en) * 2005-07-06 2007-01-10 华为技术有限公司 Ethernet interface butt-jointing method

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045243A (en) * 2009-10-10 2011-05-04 中兴通讯股份有限公司 Method and system for of adaptively recognizing duplex mode of network port of opposite terminal among network devices
CN103199680A (en) * 2013-03-19 2013-07-10 苏州汇川技术有限公司 Serial high-voltage inverter and power unit automatic identifying method
CN103701660A (en) * 2013-12-20 2014-04-02 上海斐讯数据通信技术有限公司 Ethernet equipment connection device and testing system and method applied thereby
CN103701660B (en) * 2013-12-20 2018-01-02 上海斐讯数据通信技术有限公司 A kind of ethernet device attachment means and its test system and method for application
CN105227453A (en) * 2015-09-14 2016-01-06 中国联合网络通信集团有限公司 Message forwarding method and device
CN105227453B (en) * 2015-09-14 2018-10-19 中国联合网络通信集团有限公司 Message forwarding method and device
CN110289978B (en) * 2018-03-19 2021-05-04 华为技术有限公司 Port mode switching method and related equipment thereof
WO2019179376A1 (en) * 2018-03-19 2019-09-26 华为技术有限公司 Switch method for port mode and related devices thereof
CN110289978A (en) * 2018-03-19 2019-09-27 华为技术有限公司 A kind of switching method and its relevant device of port mode
CN109714276A (en) * 2019-03-11 2019-05-03 盛科网络(苏州)有限公司 A kind of method of adaptive remote equipment negotiation mode
WO2021129839A1 (en) * 2019-12-27 2021-07-01 中国移动通信有限公司研究院 Method and equipment for sending interface message
CN111901197A (en) * 2020-07-24 2020-11-06 中车大连电力牵引研发中心有限公司 Ethernet interface mode detection device and detection method
CN111901197B (en) * 2020-07-24 2022-07-05 中车大连电力牵引研发中心有限公司 Ethernet interface mode detection device and detection method

Also Published As

Publication number Publication date
CN101345754B (en) 2011-12-28

Similar Documents

Publication Publication Date Title
CN101345754B (en) Duplexing pattern matching method and apparatus, communication system
EP0766434B1 (en) A method and system for performing auto-negotiation for a group of interface devices
US5754552A (en) Automatic communication protocol detection system and method for network systems
US6504851B1 (en) Dynamic detection of LAN network protocol
US6457055B1 (en) Configuring ethernet devices
US20090232152A1 (en) Method and apparatus for aggregating ports
US8107499B2 (en) Speed negotiation for multi-speed communication devices
JP3857317B2 (en) Automatic negotiation progress monitor
US20020124110A1 (en) Media converter and link test technique using the same
WO2006071838A2 (en) Dual speed interface between media access control unit and physical unit
GB2337672A (en) Reducing the data rate when idle state symbol errors exceed a threshold
US20020165974A1 (en) Mechanism to consolidate HPNA three network states into two network states
GB2350027A (en) Control method where setup of a link is switched to a lower rate if the number of attempts made to set up the link at a higher rate exceeds a threshold
US6768720B1 (en) Verification of link integrity of a home local area network
US6661805B1 (en) System and method for automatically changing a device transmit/receive configuration
US20030021281A1 (en) Media converter and transmission system using the same
CN101958888A (en) Configuration method of port negotiation capacity, communication port and communication device
CN105591817A (en) Negotiation mode processing method and intelligent network device
US7242693B1 (en) Method and apparatus for fiber autonegotiation
KR20050096824A (en) Network device provided with ethernet interface
US20020039354A1 (en) Method for solving a mismatched negotiation problem between an auto-negotiation mode and an enforce mode
US6366567B1 (en) Automatic detection of full or half duplex capability in a remote network device
US7428599B2 (en) Method for detecting link partner state during auto negotiation and switching local state to establish link
EP3319249B1 (en) Transmission checking method, node, system and computer storage medium
CN111431652B (en) Self-adaptive main clock competition method and system for multi-stage clock synchronization network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20111228

Termination date: 20210820