CN111245583B - Network communication device and method - Google Patents

Network communication device and method Download PDF

Info

Publication number
CN111245583B
CN111245583B CN201811441938.1A CN201811441938A CN111245583B CN 111245583 B CN111245583 B CN 111245583B CN 201811441938 A CN201811441938 A CN 201811441938A CN 111245583 B CN111245583 B CN 111245583B
Authority
CN
China
Prior art keywords
network communication
communication device
packet
external network
received
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811441938.1A
Other languages
Chinese (zh)
Other versions
CN111245583A (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.)
Realtek Semiconductor Corp
Original Assignee
Realtek Semiconductor Corp
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 Realtek Semiconductor Corp filed Critical Realtek Semiconductor Corp
Priority to CN201811441938.1A priority Critical patent/CN111245583B/en
Publication of CN111245583A publication Critical patent/CN111245583A/en
Application granted granted Critical
Publication of CN111245583B publication Critical patent/CN111245583B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0032Distributed allocation, i.e. involving a plurality of allocating devices, each making partial allocation
    • H04L5/0033Distributed allocation, i.e. involving a plurality of allocating devices, each making partial allocation each allocating device acting autonomously, i.e. without negotiation with other allocating devices

Abstract

The invention relates to a network communication device and a method. The network communication method is applied to a network communication device, and comprises the following steps: coupling with an external network communication device through a communication path; transmitting the communication capability packet to the external network communication device; judging whether a receiving confirmation packet of the external network communication device is received through a communication path; when the receiving confirmation packet is not received, the one-way communication is carried out with the external network communication device in any single time interval through a time-sharing communication mechanism, so that the automatic negotiation procedure is carried out by exchanging the communication capability packets of the two parties and the receiving confirmation packet.

Description

Network communication device and method
Technical Field
The present invention relates to network communication technologies, and more particularly, to a network communication apparatus and method.
Background
Ethernet (Ethernet) is a computer area network technology. The IEEE 802.3 standard of the IEEE organization sets forth the technical standards for ethernet networks, including the contents of physical layer wiring, electrical signaling, and medium access layer protocols. Ethernet is the most popular local area network technology currently used, and is widely used in networks used by the public.
The auto-negotiation mechanism of the ethernet network enables two electronic devices to negotiate with each other via two twisted pairs, so as to further communicate after the negotiation is completed. However, in some lines used to connect electronic devices, only one twisted pair may be included. In such a situation, the negotiation mechanism cannot be performed, and the communication between the electronic devices cannot be performed smoothly.
Therefore, it is an urgent need in the art to design a new network communication device and method to solve the above-mentioned shortcomings.
Disclosure of Invention
The invention aims to provide a network communication method, which is applied to a network communication device and comprises the following steps: coupling with an external network communication device through a communication path; transmitting the communication capability packet to the external network communication device; judging whether a receiving confirmation packet of the external network communication device is received through a communication path; when the receiving confirmation packet is not received, the one-way communication is carried out with the external network communication device in any single time interval through a time-sharing communication mechanism, so that the automatic negotiation procedure is carried out by exchanging the communication capability packets of the two parties and the receiving confirmation packet.
Another object of the present invention is to provide a network communication device, comprising: the device comprises a storage module and a processing module. The storage module is configured to store a plurality of computer-executable instructions. The processing module is electrically coupled to the storage module and configured to retrieve and execute the computer-executable instructions to perform a network communication method when the computer-executable instructions are executed, wherein the network communication method comprises: coupling with an external network communication device through a communication path; transmitting the communication capability packet to the external network communication device; judging whether a receiving confirmation packet of the external network communication device is received through a communication path; when the receiving confirmation packet is not received, the one-way communication is carried out with the external network communication device in any single time interval through a time-sharing communication mechanism, so that the automatic negotiation procedure is carried out by exchanging the communication capability packets of the two parties and the receiving confirmation packet.
The invention has the advantages that the condition of the communication path is judged through the network communication device and the method, and further, the automatic negotiation procedure is carried out by a time-sharing communication mechanism under the condition that the two-way communication can not be carried out through the communication path simultaneously.
Drawings
FIG. 1 is a block diagram of a network communication device and an external network communication device according to an embodiment of the present invention;
fig. 2 is a flow chart of a network communication method according to an embodiment of the present invention; and
fig. 3 is a timing diagram illustrating packet exchange between a network communication device and an external network communication device according to an embodiment of the invention.
Detailed Description
Please refer to fig. 1. Fig. 1 is a block diagram of a network communication device 100 and an external network communication device 150 according to an embodiment of the present invention.
The network communication device 100 and the external network communication device 150 are electronic devices having communication capabilities. Wherein the network communication device 100 is configured to electrically couple with an external network communication device 150 for communication via a communication path 160. The network communication device 100 and the external network communication device 150 can communicate by a technology such as, but not limited to, ethernet (ethernet) after being connected to each other. Also, the communication path 160 may include one or two twisted pairs.
The network communication apparatus 100 includes: a storage module 102 and a processing module 104.
In one embodiment, the storage module 102 may be, for example, but not limited to, an optical disc, a random access memory, a read only memory, a floppy disc, a hard disc, or an optical disk. The storage module 102 is configured to store a plurality of computer-executable instructions 101.
The processing module 104 is electrically coupled to the storage module 102. In one embodiment, the processing module 104 is configured to retrieve and execute the computer-executable instructions 101 and thereby perform the functions of the network communication device 100.
Please refer to fig. 2 and fig. 3. The functions of the network communication device 100 will be described in detail in the following paragraphs with reference to fig. 2 and 3.
Fig. 2 is a flow chart of a network communication method 200 according to an embodiment of the invention. The network communication method 200 can be applied to the network communication device 100 shown in fig. 1.
Fig. 3 is a timing diagram illustrating the packet exchange between the network communication device 100 and the external network communication device 150 according to an embodiment of the present invention.
The network communication method 200 comprises the following steps (it should be understood that the steps mentioned in the present embodiment, except for the sequence specifically mentioned, can be performed simultaneously or partially simultaneously according to the actual requirement.
In step 201, the network communication device 100 is coupled to the external network communication device 150 through the communication path 160.
In step 202, the network communication device 100 transmits the communication capability packet 300 to the external network communication device 150. The communication capability packet 300 is information of the communication capability of the network communication apparatus 100 itself, such as but not limited to information of the transmission speed supported by the network communication apparatus 100.
In step 203, the network communication device 100 determines whether an ack received packet 352 of the external network communication device 150 is received via the communication path 160.
In one embodiment, when the communication path 160 includes two twisted pairs, the network communication device 100 enables a transmitting unit (TX, not shown) and a receiving unit (RX, not shown) to transmit and receive packets through the first twisted pair and the second twisted pair, respectively.
On the other hand, the external network communication device 150 may enable the receiving unit thereof to communicate with the transmitting unit of the network communication device 100 through the first twisted pair for receiving the packet, and enable the transmitting unit thereof to communicate with the receiving unit of the network communication device 100 through the second twisted pair for transmitting the packet.
Thus, when the communication path 160 includes two twisted pairs, the network communication device 100 can transmit its communication capability packet 300 to the external network communication device 150 through the first twisted pair. After the external network communication device 150 receives the communication capability packet 300, the network communication device 100 may accordingly receive an acknowledgement receipt packet 352 from the second twisted pair line returned by the external network communication device 150.
Similarly, the external network communication device 150 may transmit its communication capability packet 350 to the network communication device 100 via the second twisted pair. The network communication device 100 may transmit the ack received packet 302 from the first twisted pair cable to the external network communication device 150 accordingly after receiving the communication capability packet 350.
However, when the communication path 160 includes only one twisted pair, it would be possible to have only the transmitting unit of the network communication device 100 and the receiving unit of the external network communication device 150 connected over the twisted pair, or only the receiving unit of the network communication device 100 and the transmitting unit of the external network communication device 150 connected over the twisted pair.
If only the transmitting unit of the network communication device 100 and the receiving unit of the external network communication device 150 are connected by the twisted pair cable, the network communication device 100 can transmit the communication capability packet 300 to the external network communication device 150, but cannot receive the acknowledgement receiving packet 352 of the external network communication device 150 and cannot receive the communication capability packet 350 of the external network communication device 150.
If only the receiving unit of the network communication device 100 and the transmitting unit of the external network communication device 150 are connected by the twisted pair cable, the network communication device 100 can receive the communication capability packet 350 of the external network communication device 150, but cannot receive the acknowledgement receiving packet 352 of the external network communication device 150 because the communication capability packet 300 cannot be transmitted to the external network communication device 150. The network communication device 100 also cannot respond to the acknowledgement packet corresponding to the communication capability packet 350.
Therefore, in step 204, when the network communication device 100 does not receive the ack packet 352 in the time interval T1 shown in fig. 3, it is determined that the communication path 160 only includes one twisted pair. The network communication device 100 will perform unidirectional communication with the external network communication device 150 in any single time interval through the time division communication mechanism in the subsequent time interval T2, so as to perform auto-negotiation procedure by exchanging the communication capability packets of both parties and confirming the received packets.
As shown in fig. 3, the auto-negotiation process performed during the time interval T2 may be performed by the network communication device 100 first transmitting the communication capability packet 300 to the external network communication device 150. The external network communication device 150 then transmits a corresponding ack packet 352 to the network communication device 100 and transmits a communication capability packet 350 to the network communication device 100. The network communication device 100 will then transmit a corresponding ack packet 302 to the external network communication device 150, completing the auto-negotiation.
The network communication device 100 and the external network communication device 150 determine the communication specification of the communication between the two parties by using the communication capability packet of the other party, and are applicable to the transmission speeds of the two parties, for example, but not limited thereto.
It should be noted that the above embodiment is described by taking the network communication device 100 as an example to transmit the communication capability packet 300 first. In another embodiment, the auto-negotiation process may also be started by the external network communication device 150 first transmitting the communication capability packet 350.
When the network communication device 100 receives the communication capability packet 350 and the acknowledgement packet 352, in step 205, it is determined that the communication path 160 includes two pairs of twisted pairs. The network communication device 100 and the external network communication device 150 will simultaneously transmit the communication capability packets 300, 350 and the acknowledgement receipt packets 302, 352 through the communication path 160 for performing the auto-negotiation procedure.
The network communication apparatus 100 and the network communication method 200 of the present invention can determine the status of the communication path 160, and further perform an auto-negotiation procedure by a time-sharing communication mechanism when bidirectional communication cannot be simultaneously performed through the communication path.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit of the present invention are intended to be included within the scope of the present invention.
[ notation ] to show
100: network communication device
102: storage module
150: external network communication device
200: network communication method
300. 350: communication capability encapsulation
T1, T2: time interval
101: computer executable instructions
104: processing module
160: communication path
201-205: step (ii) of
302. 352: the received packet is acknowledged.

Claims (10)

1. A network communication method is applied to a network communication device, and comprises the following steps:
coupling with an external network communication device through a communication path;
transmitting a communication capability packet to the external network communication device;
determining whether a reception confirmation packet of the external network communication device is received through the communication path;
when the receiving confirmation packet is not received, the one-way communication is carried out with the external network communication device in any single time interval through a time sharing communication mechanism, so that an automatic negotiation procedure is carried out through exchanging the communication capability packets of the two parties and the receiving confirmation packet.
2. The network communication method of claim 1, wherein the auto-negotiation procedure comprises:
transmitting, by a first one of the network communication device and the external network communication device, the communication capability packet associated with the first one to a second one of the network communication device and the external network communication device;
transmitting the corresponding ACK-reception packet from the second to the first;
transmitting, by the second to the first, the communication capability packet associated with the second; and
transmitting the corresponding ACK-received packet from the first to the second.
3. The network communication method of claim 1, further comprising:
the network communication device and the external network communication device determine a communication specification of communication between the two parties through the communication capability packet of the other party.
4. The network communication method of claim 1, further comprising:
when receiving the receiving confirmation packet, the network communication device and the external network communication device transmit the communication capability packet and the receiving confirmation packet through the communication path at the same time to perform the auto-negotiation procedure.
5. The network communication method of claim 1, further comprising:
when the receiving confirmation packet is not received, judging that the communication path only comprises a pair of twisted-pair lines; and
when the acknowledge receipt packet is received, the communication path is determined to include two pairs of twisted pairs.
6. A network communication device, comprising:
a storage module configured to store a plurality of computer-executable instructions; and
a processing module electrically coupled to the storage module and configured to retrieve and execute the computer-executable instructions to perform a network communication method when the computer-executable instructions are executed, wherein the network communication method comprises:
coupling with an external network communication device through a communication path;
transmitting a communication capability packet to the external network communication device;
determining whether a reception confirmation packet of the external network communication device is received through the communication path;
when the receiving confirmation packet is not received, the one-way communication is carried out with the external network communication device in any single time interval through a time sharing communication mechanism, so that an automatic negotiation procedure is carried out through exchanging the communication capability packets of the two parties and the receiving confirmation packet.
7. The network communication device as claimed in claim 6, wherein the auto-negotiation procedure comprises:
transmitting, by a first one of the network communication device and the external network communication device, the communication capability packet associated with the first one to a second one of the network communication device and the external network communication device;
transmitting the corresponding ACK-reception packet from the second to the first;
transmitting, by the second to the first, the communication capability packet associated with the second; and
transmitting the corresponding ACK-received packet from the first to the second.
8. The network communication device of claim 6, wherein the network communication method further comprises:
the network communication device and the external network communication device determine a communication specification of communication between the two parties through the communication capability packet of the other party.
9. The network communication device of claim 6, wherein the network communication method further comprises:
when receiving the receiving confirmation packet, the network communication device and the external network communication device transmit the communication capability packet and the receiving confirmation packet through the communication path at the same time to perform the auto-negotiation procedure.
10. The network communication device of claim 6, wherein the network communication method further comprises:
when the receiving confirmation packet is not received, judging that the communication path only comprises a pair of twisted-pair lines; and
when the acknowledge receipt packet is received, the communication path is determined to include two pairs of twisted pairs.
CN201811441938.1A 2018-11-29 2018-11-29 Network communication device and method Active CN111245583B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811441938.1A CN111245583B (en) 2018-11-29 2018-11-29 Network communication device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811441938.1A CN111245583B (en) 2018-11-29 2018-11-29 Network communication device and method

Publications (2)

Publication Number Publication Date
CN111245583A CN111245583A (en) 2020-06-05
CN111245583B true CN111245583B (en) 2022-04-19

Family

ID=70874218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811441938.1A Active CN111245583B (en) 2018-11-29 2018-11-29 Network communication device and method

Country Status (1)

Country Link
CN (1) CN111245583B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5325355A (en) * 1993-03-19 1994-06-28 Apple Computer, Inc. Method and apparatus for implementing a common mode level shift in a bus transceiver incorporating a high speed binary data transfer mode with a ternary control transfer mode
US5432775A (en) * 1993-12-03 1995-07-11 Advanced Micro Devices, Inc. Auto negotiation system for a communications network
JP2003060728A (en) * 2001-08-21 2003-02-28 Nec Corp Method for determinating full duplex/semi duplex of opposite device by automatic recognizing device
CN1677964A (en) * 2004-03-29 2005-10-05 富士通株式会社 Network device provided with Ethernet interface
CN101123562A (en) * 2006-08-08 2008-02-13 台达电子工业股份有限公司 Unidirectional loop Ethernet system and its control method
CN101710870A (en) * 2009-12-01 2010-05-19 西安终南信息技术有限公司 Access and data transmission method for mineral long reach Ethernet
CN101849380A (en) * 2008-07-22 2010-09-29 松下电器产业株式会社 Communication system, communication device, and communication method
CN103391386A (en) * 2012-05-10 2013-11-13 佳能株式会社 Communication apparatus operable in auto-negotiation mode, and method of controlling the communication apparatus
CN103944707A (en) * 2014-05-12 2014-07-23 哈尔滨工业大学 Full-duplex and half-duplex converter and conversion method
CN107682123A (en) * 2017-10-23 2018-02-09 蒋丁贵 A kind of communication system and method
CN108712373A (en) * 2018-03-30 2018-10-26 深圳市风云实业有限公司 One-way communication method, apparatus, user terminal and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100666051B1 (en) * 2005-05-04 2007-01-10 삼성전자주식회사 Communication terminal displaying holding time and communication method thereof

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5325355A (en) * 1993-03-19 1994-06-28 Apple Computer, Inc. Method and apparatus for implementing a common mode level shift in a bus transceiver incorporating a high speed binary data transfer mode with a ternary control transfer mode
US5432775A (en) * 1993-12-03 1995-07-11 Advanced Micro Devices, Inc. Auto negotiation system for a communications network
JP2003060728A (en) * 2001-08-21 2003-02-28 Nec Corp Method for determinating full duplex/semi duplex of opposite device by automatic recognizing device
CN1677964A (en) * 2004-03-29 2005-10-05 富士通株式会社 Network device provided with Ethernet interface
CN101123562A (en) * 2006-08-08 2008-02-13 台达电子工业股份有限公司 Unidirectional loop Ethernet system and its control method
CN101849380A (en) * 2008-07-22 2010-09-29 松下电器产业株式会社 Communication system, communication device, and communication method
CN101710870A (en) * 2009-12-01 2010-05-19 西安终南信息技术有限公司 Access and data transmission method for mineral long reach Ethernet
CN103391386A (en) * 2012-05-10 2013-11-13 佳能株式会社 Communication apparatus operable in auto-negotiation mode, and method of controlling the communication apparatus
CN103944707A (en) * 2014-05-12 2014-07-23 哈尔滨工业大学 Full-duplex and half-duplex converter and conversion method
CN107682123A (en) * 2017-10-23 2018-02-09 蒋丁贵 A kind of communication system and method
CN108712373A (en) * 2018-03-30 2018-10-26 深圳市风云实业有限公司 One-way communication method, apparatus, user terminal and computer readable storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Fast Ethernet gets plug-and-play;I.Crayford;《IEEE》;20020806;第354页 *
以太网-Auto Negotiation(自动协商);流水灯;《博客园 https://www.cnblogs.com/god-of-death/p/9362841.html》;20180724;全文 *
快速以太网光纤收发器IST-100M-S_M的研制;刘静;《中国优秀硕士学位论文全文数据库(工程科技I辑)》;20090316;全文 *

Also Published As

Publication number Publication date
CN111245583A (en) 2020-06-05

Similar Documents

Publication Publication Date Title
US6587904B1 (en) Method and apparatus for preventing loops in a full-duplex bus
US6266334B1 (en) Method for optimizing acknowledge packet rate
US4412326A (en) Collision avoiding system, apparatus and protocol for a multiple access digital communications system including variable length packets
JP3913552B2 (en) Auto-negotiation method and auto-negotiation device for high-speed links
US9003089B2 (en) Synchronous serial data-exchange system
US10454527B1 (en) NBASE-T PHY-to-PHY information exchange method and apparatus
JPS639261B2 (en)
JP2011501483A (en) Millimeter-wave communication for peripheral devices
US9900268B2 (en) System, method and apparatus for multi-lane auto-negotiation over reduced lane media
CN105635176A (en) Network data transmission method based on RapidIO
CN106911388A (en) The method and apparatus of self-adaptative adjustment different rates device port
CN103650401A (en) Internal communication method for mobile terminal
US7242693B1 (en) Method and apparatus for fiber autonegotiation
JP2986798B2 (en) Data transmission control method and data communication device
US6496487B2 (en) Efficient full duplex simultaneous message transfer
CN111245583B (en) Network communication device and method
CN103580976A (en) Method and device for avoiding carrier sensing conflicts
TWI681649B (en) Network communication device and method of the same
JP2008526061A (en) Repeater node for network
JP2007295482A (en) Data transmission system
KR100966925B1 (en) Packet signal processing architecture
JP3148733B2 (en) Signal processing device and signal processing system
WO2021136278A1 (en) Message transmission method and electronic device
EP1085697A2 (en) Circuit and method for exchanging signals between network nodes
US9143391B2 (en) Method of processing management frame and related communication device

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
GR01 Patent grant
GR01 Patent grant