Communication receiving device, communication transmitting device, communication system, and communication data transmission method
By priority classification and cache management of downloaded data packets in the communication receiving device, and using the flow control packet generation module to process alarm information when the traffic is too large, the problem of data transmission congestion in the asymmetric communication network is solved and a more efficient implementation is achieved. Efficient data transfer.
Patent Information
- Application Number
- PCT/CN2023/106186
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-31
- Filing Date
- 2023-07-06
- Publication Date
- 2024-10-03
AI Technical Summary
In the existing communication network, the bandwidth of the upload link and the download link of the asymmetric communication network is quite different, which leads to easy congestion in data transmission and affects the efficiency of network data transmission.
A communication receiving device and sending device are designed. By dividing the downloaded data packet into types of data packets with different priorities, and caching and transmitting them respectively in the cache module, the flow control packet generation module is used to notify the receiving component when the traffic is too large. Pause download signals to avoid data congestion.
It effectively avoids congestion and packet loss in data transmission, ensures the reliability and stability of transmission, and improves data transmission efficiency.
Smart Images

Figure CN2023106186_03102024_PF_FP_ABST
Abstract
Description
Communication receiving and transmitting device, communication system and communication data transmission method Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to communication receiving and sending equipment, a communication system, and a communication data transmission method. Background Art
[0002] With the development of technology, the amount of data that needs to be transmitted between terminals and network devices is increasing. Although traditional wired data transmission systems based on cables or optical fibers can meet the bandwidth required for massive data transmission, in emerging fields such as autonomous driving and vehicle-road collaboration, traditional wired connection methods greatly limit the flexibility of data transmission systems.
[0003] Long-distance data transmission can be achieved through wireless networks in the form of Ethernet data packets. In this process, massive amounts of data are transmitted from the sender to the receiver, and the receiver transmits control information to the sender. The bandwidth required to transmit data and control information is very different. Designing an asymmetric data transmission system can effectively reduce the cost of data transmission. Technical issues
[0004] Since the bandwidth of the upload link and download link of an asymmetric communication network is significantly different, data congestion is likely to occur at the network port, affecting the network data transmission efficiency. Technical Solutions
[0005] In view of this, the present invention provides communication receiving and sending equipment, a communication system and a communication data transmission method, which are used to solve the problems of high development cost and difficulty and easy congestion of data transmission in the existing technology.
[0006] To achieve one, some, or all of the above objectives or other objectives, the present invention provides a communication receiving device, wherein the communication system includes a communication sending device, the communication receiving device is configured to transmit download data to the communication sending device and receive upload data transmitted by the communication sending device, wherein a bandwidth for transmitting the download data is smaller than a bandwidth for transmitting the upload data;
[0007] The communication receiving device includes:
[0008] A receiving component, configured to divide the download data into download Ethernet data packets, wherein the receiving component includes a receiving end network port connected to the receiving component and configured to convert the download Ethernet data packets into download signals;
[0009] Receiver auxiliary components, including:
[0010] A first transmission port, connected to the receiving end network port, for receiving the download signal;
[0011] a restoration module, connected to the first receiving port, and configured to restore the download signal to the download Ethernet data packet;
[0012] a data packet classification module, connected to the restoration module, for classifying the downloaded Ethernet data packet into multiple types of data packets according to the length and type of the data packet, wherein different types of data packets have different priorities;
[0013] A plurality of cache modules are connected to the data packet classification module, the plurality of cache modules correspond to the plurality of types of data packets one by one, and each of the cache modules is used to cache one type of data packet;
[0014] a first data packet arbitration module, connected to the first cache module and the second cache module, configured to convert the data bit widths of the first type of data packets in the first cache module and the second type of data packets in the second cache module according to the priority and then transmit them;
[0015] a cache status monitoring module connected to the first cache module and the second cache module, configured to monitor the cache status of the first cache module and the second cache module; and generate an excessive traffic alarm message when the cache status of at least one of the first cache module and the second cache module indicates that the current cached data amount exceeds a preset threshold;
[0016] The flow control packet generating module is connected to the cache status monitoring module and is used to generate a flow control frame according to the excessive flow alarm information. The flow control frame is used to notify the receiving component to suspend sending the download signal.
[0017] To achieve one, some, or all of the above objectives, or other objectives, the present invention provides a communication sending device, applied to a communication system, wherein the communication system further includes a communication receiving device, the communication sending device being configured to transmit upload data to the communication receiving device and receive download data transmitted by the communication receiving device, wherein a bandwidth for transmitting the download data is smaller than a bandwidth for transmitting the upload data;
[0018] The communication sending device includes:
[0019] Send auxiliary components, including:
[0020] an avalanche photodiode, configured to convert the download modulated laser light into a download electrical signal, wherein the download modulated laser light is the laser light sent by a communication receiving device for transmitting download data;
[0021] A low-speed receiving port, connected to an avalanche photodiode, for receiving the download electrical signal and decoding the corresponding download digital signal therefrom;
[0022] A low-speed data packet module, connected to the low-speed receiving port, and configured to obtain a download Ethernet data packet according to the download digital signal;
[0023] a download cache module, connected to the low-speed data packet module, configured to perform data stream bit width conversion on the download Ethernet data packet and cache the download Ethernet data packet after the data stream bit width conversion;
[0024] a high-speed data packet module, connected to the download cache module, for converting the download Ethernet data packet after the data stream bit width conversion process into a download Ethernet signal;
[0025] A high-speed transmission port, used to convert the download Ethernet signal into a download Ethernet data packet signal;
[0026] The sending component includes a sending end network port, which is connected to the sending auxiliary component and is used to obtain the download Ethernet data packet according to the download Ethernet data packet signal.
[0027] In order to achieve one or part or all of the above purposes or other purposes, the present invention proposes a communication system, including a communication receiving device and a communication sending device, wherein the communication receiving device is the communication receiving device described above, and the communication sending device is the communication sending device described above.
[0028] To achieve one, some, or all of the above objectives, or other objectives, the present invention provides a communication data transmission method, applied to a communication receiving device in a traffic system, wherein the communication system further includes a communication sending device, the communication receiving device being configured to transmit download data to the communication sending device and receive upload data transmitted by the communication sending device, wherein a bandwidth for transmitting the download data is smaller than a bandwidth for transmitting the upload data;
[0029] The communication data transmission method includes:
[0030] receiving a download signal, and restoring the download signal to the download Ethernet data packet;
[0031] classifying the downloaded Ethernet data packets into first-type data packets and second-type data packets according to data packet length and type, wherein the first-type data packets have a higher priority than the second-type data packets;
[0032] caching the first type of data and the second type of data in different cache modules respectively, and transmitting the first type of data packet and the second type of data packet according to the priority;
[0033] Monitoring the cache status of the cache module, and generating excessive traffic alarm information when the cache status of the cache module indicates that the current cached data amount exceeds a preset threshold;
[0034] A flow control frame is generated according to the excessive flow alarm information, and the flow control frame is used to notify the communication receiving device to suspend sending the download signal. Beneficial effects
[0035] The implementation of the present invention will have the following beneficial effects:
[0036] Download Ethernet data packets are classified into first type data packets and second type data packets according to the data packet length and type. Since the probability of congestion during transmission of second type data packets is greater than that of first type data packets, the priority of first type data packets is higher than that of second type data packets. Therefore, the first type data packets used to notify the communication sending device can be transmitted first. Even if congestion occurs during the subsequent transmission of second type data packets, the communication sending device can still transmit the uploaded data to the communication receiving device normally, ensuring the reliability and stability of the transmission and improving the efficiency of the transmission. When the transmission traffic is too large, the traffic control packet generation module sends a traffic control frame to the receiving component so that the receiving component no longer sends a download signal, avoiding the occurrence of a large number of packet losses and congestion, and also ensuring the reliability and stability of the transmission and improving the efficiency of the transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0038] in:
[0039] FIG1 is a schematic structural diagram of a communication system provided by the present invention;
[0040] FIG2 is a schematic structural diagram of an embodiment of a communication receiving device provided by the present invention;
[0041] FIG3 is a schematic structural diagram of an embodiment of a communication sending device provided by the present invention;
[0042] FIG4 is a flow chart of an embodiment of a communication data transmission method provided by the present invention.
[0043] The reference numerals in the accompanying drawings are as follows:
[0044] Communication sending device 10, communication receiving device 20;
[0045] Sending component 11, sending auxiliary component 12;
[0046] Sending end network port 111;
[0047] High-speed transmission port 1201, high-speed data packet conversion module 1202, upload cache module 1203, high-speed signal conversion module 1204, high-speed sending port 1205, second data packet filtering and monitoring module 1206, second configuration and monitoring module 1207, low-speed receiving port 1208, low-speed data packet module 1209, download cache module 1210, high-speed data packet module 1211, first data packet filtering and monitoring module 1212 and first configuration and monitoring module 1213
[0048] High-speed interface 1202a, decoding module 1202b and MAC receiving module 1202c;
[0049] MAC sending module 1204a, encoding module 1204b, high-speed interface 1204c;
[0050] High-speed interface 1209a, decoding module 1209b, MAC receiving module 1209c;
[0051] MAC sending module 1211a, encoding module 1211b, high-speed interface 1211c;
[0052] Receiving component 21, receiving end auxiliary component 22;
[0053] Receiving end network port 211;
[0054] a first transmission port 2201, a restoration module 2202, a data packet classification module 2203, a first buffer module 2204a and a second buffer module 2204b, a first data packet arbitration module 2205, a buffer status monitoring module 2206, a flow control packet generation module 2207, a first signal conversion module 2208 and a second transmission port 2209, a first data packet filtering and monitoring module 2210, a first configuration and monitoring module 2211, a high-speed receiving component 2213, an upload buffer module 2214, a second data packet arbitration module 2215, a second signal conversion module 2216, a second data packet filtering and monitoring module 2217 and a second configuration and monitoring module 2218;
[0055] High-speed interface 2202a, decoding module 2202b and MAC receiving module 2202c;
[0056] MAC sending module 2208a, encoding module 2208b, high-speed interface 2208c;
[0057] High-speed receiving port 2213a, high-speed interface 2213b, decoding module 2213c, MAC receiving module 2213d;
[0058] MAC sending module 2216a, encoding module 2216b, and high-speed interface 2216c. Best Mode for Carrying Out the Invention
[0059] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0060] In network applications such as autonomous driving, vehicle-road collaboration, and data collection, which rely heavily on massive data transmission, massive amounts of data are often transmitted over long distances via the network in the form of Ethernet packets. During this process, massive data is transmitted from the sender to the receiver, and the receiver transmits control information to the sender, enabling the sender to continue sending data based on this transmission control information. The bandwidth required for transmitting data and control information differs significantly, making the design of an asymmetric data transmission system effective in reducing system cost. Therefore, to reduce system size, complexity, and cost, an asymmetric approach is generally adopted, where the bandwidth of the upload and download communication links differs. The upload communication link, due to the massive amount of data it transmits, has a higher bandwidth. The download communication link, due to the smaller amount of data it transmits, has a narrower bandwidth. For example, the upload link bandwidth may be 10G, while the download link bandwidth may be 1G.
[0061] Due to the large difference in bandwidth between the upload link and the download link, once data congestion occurs on the download link, the data transmission efficiency within the local area network will be affected. Especially in data transmission applications based on the TCP / IP protocol, if the sending end does not receive feedback information sent by the receiving end through the download link or receives it after a long delay, it will not send transmission data through the uplink or continuously retransmit previous data packets, which will lead to a significant decrease in the transmission efficiency of the entire network.
[0062] In addition, data exchange in existing asymmetric networks (such as PON (Passive Optical Network)) is often completed by switches or routers, requiring dedicated data exchange chips / devices, which are difficult to develop and costly.
[0063] Field-programmable gate arrays (FPGAs) are widely used in the networking and communications fields due to their rich interface and programmable features. Using FPGAs to design asymmetric network data exchange logic offers relatively low development difficulty, high efficiency, and low cost, allowing for high customization to meet various application scenarios. In this invention, a transmitter-side auxiliary component and a receiver-side auxiliary component are designed based on FPGAs in a communication transmitter and receiver, respectively. These components implement data forwarding functions through the high-speed SERDES (serializer / deserializer) interface provided by the FPGAs.
[0064] Please refer to Figures 1 and 2 in combination. Figure 1 is a structural diagram of the communication system provided by the present invention. The communication system includes a communication sending device 10 and a communication receiving device 20. The communication sending device 10 transmits upload data to the communication receiving device 20, and the communication receiving device transmits download data to the communication sending device. Since the amount of uploaded data is greater than the amount of downloaded data, the bandwidth for transmitting downloaded data is smaller than the bandwidth for transmitting uploaded data. For example, the bandwidth for transmitting uploaded data is 10G, and the bandwidth for transmitting downloaded data is 1G.
[0065] Figure 2 is a schematic diagram of the structure of an embodiment of a communication receiving device provided by the present invention. Communication receiving device 20 includes a receiving component 21 and a receiving-end auxiliary component 22. Receiving component 21 can be a network receiving device connected to the network via optical fiber or cable. Receiving component 21 obtains download data to be transmitted to communication sending device 10. This data can be data transmitted from the network or data that receiving component 21 needs to feed back to communication sending device 10.
[0066] The receiving component 21 divides the download data into multiple data packets of a certain length, and encapsulates each data packet according to the network transmission protocol required to transmit the download data (for example, a protocol based on the UDP (User Datagram Protocol) / TCP (Transmission Control Protocol) protocol family), thereby generating a download Ethernet data packet that can be transmitted on the Internet.
[0067] The receiving component also includes a 10G Ethernet port 211, which converts downloaded Ethernet data packets into corresponding download signals. The download signals can be analog or optical, depending on the connection between the receiving port 211 and the receiving auxiliary component 22. If the two are connected via a cable, the download signals are analog; if the two are connected via optical fiber, the download signals are optical. The receiving port 211 transmits the download signals to the receiving auxiliary component 22 via the cable / optical fiber.
[0068] The receiving-end auxiliary component 22 is used to perform data verification, caching, exchange, and network traffic control functions on the download signal. On the one hand, it can filter out errors and download data packets that are not related to data exchange, thereby reducing the pressure on network transmission; on the other hand, it can reasonably schedule the traffic of the network system, solve the network congestion problem in the asymmetric network, and improve the efficiency of network data transmission.
[0069] The receiving-end auxiliary component 22 includes a first transmission port 2201 , a restoration module 2202 , a data packet classification module 2203 , a first buffer module 2204 a and a second buffer module 2204 b , a first data packet arbitration module 2205 , a buffer status monitoring module 2206 , and a flow control packet generation module 2207 .
[0070] The first transmission port 2201 is connected to the receiving-end network port 211, receives the download signal sent by the receiving-end network port 211, and converts the download signal from an analog signal / optical signal to a corresponding digital signal. This can be done by converting the analog signal / optical signal to a corresponding serial digital signal, and then converting the serial digital signal to a parallel digital signal. The first transmission port 2201 can be a SERDES (serializer / deserializer, serial-to-parallel conversion) port or a PHY (physical layer) port.
[0071] The restoration module 2202 is connected to the first transmission port 2201 and is used to restore the digital signal download signal to a download Ethernet data packet. In this embodiment, the restoration module 2202 includes a high-speed interface 2202a, a decoding module 2202b, and a MAC receiving module 2202c. These modules sequentially perform error correction, decoding, and frame header removal on the download signal to obtain the download Ethernet data packet. The high-speed interface 2202a, decoding module 2202b, and MAC receiving module 2202c operate in the same clock domain as the first transmission port 2201. The operating bandwidth of the high-speed interface 2202a, decoding module 2202b, and MAC receiving module 2202c is 10G.
[0072] The data packet classification module 2203 is connected to the restoration module 2202, and is used to classify the downloaded Ethernet data packets restored by the restoration module 2202 into multiple types of data according to the data packet length and type. Here, the first type of data packet and the second type of data packet are used as examples for explanation. There may also be other types of data packets, such as three types of data packets, four types of data packets or more.
[0073] In this implementation scenario, shorter data packets such as network flow control packets and various network function packets (including but not limited to ARP (Address Resolution Protocol) packets, handshake packets between communicating parties, command packets, etc.) are classified as first-type data packets, and longer data packets for data transmission are classified as second-type data packets. First-type data packets have higher priority than second-type data packets. Thus, when transmitting download Ethernet data packets, first-type data packets are transmitted first. Because the bandwidth for transmitting data from the communication receiving device 20 to the communication sending device 10 is relatively narrow, congestion is more likely to occur when transmitting longer data packets. In addition, the first-type data packets include some data packets used to notify the communication sending device 10 to transmit data to the communication receiving device 2. These data packets should be sent out first so that the communication sending device 10 can promptly transmit the uploaded data to the communication receiving device 2 via the wider bandwidth communication link. This avoids congestion during the transmission of second-type data packets and the existence of unsent first-type data packets, which results in the communication sending device 10 being unable to transmit data to the communication receiving device 2 due to not receiving the corresponding data packets.
[0074] In other implementation scenarios, download Ethernet packets can be categorized by length, with longer packets having the lowest priority. Shorter packets can then be prioritized based on packet protocol. For example, packet acknowledgment frames have the highest priority, followed by command frames, and then control packets such as ARP (Address Resolution Protocol) and ICMP (Internet Control Message Protocol).
[0075] Multiple cache modules correspond one-to-one to the multiple types of data packets, and each cache module is used to cache a type of data packet. This description uses the first cache module 2204a and the second cache module 2204b as examples. The first cache module 2204a and the second cache module 2204b are respectively connected to the data packet classification module 2203. The first cache module 2204a is used to store the first type of data packets, and the second cache module 2204b is used to store the second type of data packets. The first cache module 2204a and the second cache module 2204b are both first input first output (FIFO) memories. In other implementation scenarios, when there are more types of data packets, more cache modules will be provided.
[0076] The first packet arbitration module 2205 is connected to the first buffer module 2204a and the second buffer module 2204b, respectively. Based on the priorities of the first and second type packets, the first and second buffer modules 2204a and 2204b select download Ethernet packets for transmission. Because the bandwidth for transmitting data from the communication receiving device 2 to the communication transmitting device 10 is relatively narrow, the first packet arbitration module 2205 performs data bit width conversion on the selected download Ethernet packets.
[0077] The cache status monitoring module 2206 is connected to the first cache module 2204a and the second cache module 2204b and is configured to monitor the cache status of the first cache module 2204a and the second cache module 2204b. Since the cache space of the first cache module 2204a is limited, when all the cache space is occupied, it cannot receive new first-type data packets. Newly transmitted first-type data packets will be discarded until the first-type data packets already in the first cache module 2204a are read and transmitted by the first data packet arbitration module 2205, and sufficient cache space is available in the first cache module 2204a for caching new first-type data packets.
[0078] Similarly, the cache space of the second cache module 2204b is limited. When the cache space is occupied, new second-type data packets cannot be received, and the newly transmitted second-type data packets will be discarded until the original first-type data packets in the second cache module 2204b are read and transmitted by the second data packet arbitration module 2205. There is sufficient cache space in the second cache module 2204b for caching new second-type data packets.
[0079] Therefore, when the first cache module 2204a or the second cache module 2204b is unable to receive new first-type or second-type data packets, it sends a notification to the cache status monitoring module 2206, notifying the cache status monitoring module 2206 that the traffic on the transmission link for the first-type or second-type data packets is too heavy and is about to be lost. Upon receiving the notification, the cache status monitoring module 2206 generates an excessive traffic alarm message, which includes information about the link for downloading the Ethernet data packets that are about to be lost.
[0080] The flow control packet generation module 2207 is connected to the cache status monitoring module 2206. After receiving the excessive traffic alarm information, it generates a corresponding flow control frame (including but not limited to zero window data frames in TCP mode, command frames that notify upper-layer applications to pause sending, etc.) according to the high-bandwidth link configuration of the receiving-end auxiliary component 22 and the link information of the download Ethernet data packet that is about to be lost, and sends the flow control frame to the receiving component 21 so that the receiving component 21 no longer sends download signals, thereby avoiding continued packet loss and transmission congestion.
[0081] As can be seen from the above description, in this embodiment, the download Ethernet data packets are classified into the first type of data packets and the second type of data packets according to the length and type of the data packets. Since the probability of the second type of data packets being blocked during transmission is greater than that of the first type of data packets, the priority of the first type of data packets is higher than that of the second type of data packets, so that the first type of data packets used to notify the communication sending device can be transmitted first. Even if congestion occurs during the subsequent transmission of the second type of data packets, the communication sending device can still transmit the uploaded data to the communication receiving device normally, ensuring the reliability and stability of the transmission and improving the efficiency of the transmission. When the transmission traffic is too large, the traffic control packet generation module sends a traffic control frame to the receiving component so that the receiving component no longer sends a download signal, avoiding the occurrence of a large number of packet losses and congestion, and can also ensure the reliability and stability of the transmission and improve the efficiency of the transmission.
[0082] Continuing with Figure 2 , the receiving-end auxiliary component 22 also includes a first signal conversion module 2208 and a second transmission port 2209. The first signal conversion module 28 is connected to the first packet arbitration module 2205 and converts the first type and / or second type packets selected for transmission by the first packet arbitration module into analog signals for downloading Ethernet packets. The transmission bandwidth of the signal conversion module 2208 is smaller than the transmission bandwidth of the restoration module 2202. The signal conversion module 2208 includes a MAC transmission module 2208a, an encoding module 2208b, and a high-speed interface 2208c. The MAC transmission module 2208a and encoding module 2208b are used to sequentially encapsulate and encode the first type and / or second type packets, and then transmit them via the high-speed interface 2208c.
[0083] Second transmission port 2209 is connected to high-speed interface 2208c and is used to receive signals transmitted by high-speed interface 2208c and perform parallel-to-serial conversion on the signals to obtain corresponding Ethernet data packet signals. The Ethernet data packet signals are optical or analog signals. The Ethernet data packet signals are used as modulation signals to modulate the amplitude of the output laser. Second transmission port 2209 can be a SERDES (serializer / deserializer, serial-to-parallel conversion) port or a PHY (physical layer) port. The transmission bandwidth of second transmission port 2209 is low, for example, 1G.
[0084] The receiving-end auxiliary component 22 further includes a laser for emitting modulated laser light, with which the Ethernet data packet propagates in free space. The operating bandwidth of the laser is low, for example, 1G.
[0085] From the above description, it can be seen that in this embodiment, the first type of data packet and / or the second type of data is converted into an Ethernet data packet signal suitable for low-bandwidth transmission through the first signal conversion module and the second transmission port, and then the amplitude of the output laser is modulated according to the Ethernet data packet signal as a modulation signal, and the modulated laser is emitted. The Ethernet data packet propagates in free space with the modulated laser, so that it can be received by the communication sending device, thereby achieving successful data transmission.
[0086] Continuing with Figure 2, the receiving-end auxiliary component 22 also includes a first packet filtering and monitoring module 2210 and a first configuration and monitoring module 2211. The first packet filtering and monitoring module 2212 is connected between the restoration module 2202 and the packet classification module 2203. It is configured to obtain packet identifiers from the download Ethernet packets output by the restoration module 2202. The packet identifiers include the MAC addresses and IP addresses of the communicating parties (the transmitting and receiving devices), as well as the protocol type of the download Ethernet packets. Based on these packet identifiers, the download Ethernet packets are filtered. Download Ethernet packets that meet predefined criteria are transmitted to the packet classification module 2203. The remaining download Ethernet packets, which may be erroneous packets that fail verification or are unrelated to the communicating parties, are discarded.
[0087] The first configuration and monitoring module 2211 is connected to the first data packet filtering and monitoring module 2210 and is used to set the filtering conditions for downloading Ethernet data packets in the data packet filtering and monitoring module 2210. Users can add, modify, and delete filtering conditions through the first configuration and monitoring module 2211.
[0088] The first packet filtering and monitoring module 2210 can also monitor the transmission status of the download Ethernet packet based on the packet identifier. The packet identifier primarily includes the MAC address, IP address, and protocol type (ARP, RARP, TCP / IP, UDP / IP, ICMP, etc.) of the communicating parties. The packet identifier is parsed from the packet header of the transmitted download Ethernet packet to monitor the sender and receiver of the previously transmitted download Ethernet packet, determine whether the sender and receiver are correct and legal (i.e., whether they are the agreed sender and receiver), monitor the protocol type of the currently transmitted download Ethernet packet, and determine the network connection status. If a problem occurs in the transmission status of the download Ethernet packet, it indicates a problem with the module that generates the download Ethernet packet. The first configuration and monitoring module 2211 detects the data transmission status of the first high-speed link composed of the first transmission port 2201 and the restoration module 2202 based on the transmission status obtained by the first packet filtering and monitoring module 2210. If the output transmission status of the first high-speed link is abnormal, a first high-speed link abnormality alarm message is output. This allows the user to take timely action based on the first high-speed link abnormality alarm message.
[0089] From the above description, it can be seen that in this embodiment, the first data packet filtering and monitoring module obtains the data packet identifier of the downloaded Ethernet data, and filters the downloaded Ethernet data packet according to the data packet identifier to filter out erroneous or irrelevant downloaded Ethernet data packets, which can effectively reduce the number of downloaded Ethernet data packets that need to be transmitted subsequently, reduce the probability of congestion when transmitting data with low bandwidth, ensure the reliability and stability of transmission, and improve transmission efficiency.
[0090] 2, the communication receiving device 2 is used to transmit download data to the communication sending device 10 and also receives upload data transmitted by the communication sending device. Therefore, the receiving auxiliary component 22 is also provided with another link for processing the received upload data.
[0091] The receiving-end auxiliary component 22 further includes: a high-speed receiving component 2213 , an upload buffer module 2214 , a second data packet arbitration module 2215 , and a second signal conversion module 2216 .
[0092] The high-speed receiving component 2213 receives the uplink optical signal sent by the communication transmitting device 10 for transmitting uplink data and converts it into an uplink digital signal. Specifically, the receiving-end auxiliary component 22 includes an APD (avalanche photodiode), which operates at a high bandwidth, in one implementation scenario, at a bandwidth of 10G. The APD receives the uplink optical signal, converts it into a corresponding electrical signal, and amplifies it. The uplink optical signal is the modulated laser light emitted by the communication transmitting device 10.
[0093] The high-speed receiving component 2213 includes a high-speed receiving port 2213a, a high-speed interface 2213b, a decoding module 2213c, and a MAC receiving module 2213d.
[0094] High-speed receive port 2213a connects to the APD (10G), receives the electrical signal output by the APD, decodes it into the corresponding serial digital signal, and then converts it into a parallel digital signal. This parallel digital signal is synchronized with the output clock domain of high-speed receive port 2213a and serves as the uploaded digital signal. High-speed receive port 2213a can be a SERDES (serializer / deserializer, serial-to-parallel conversion) port or a PHY (physical layer) port.
[0095] One end of the high-speed interface 2213b is connected to the high-speed receiving port 2213a, and the other end is connected to the decoding module 2213c. The other end of the decoding module 2213c is connected to the MAC receiving module 2213d. The high-speed interface 2213b, the decoding module 2213c, and the MAC receiving module 2213d sequentially perform error correction, decoding, and frame header operations on the uploaded digital signal to obtain the uploaded Ethernet data packet.
[0096] The upload buffer module 2214 is connected to the MAC receiver module 2213d and is used to obtain and buffer uploaded Ethernet packets. The upload buffer module 2214 is a first-input, first-out (FIFO) memory. The uploaded Ethernet packets buffered in the upload buffer module 2214 are synchronized with the output clock domain of the high-speed receive port 2213a.
[0097] The second data packet arbitration module 2215 is connected to the upload buffer module 2214 and the flow control packet generation module 2207, and is used to select whether to transmit the upload Ethernet data packet in the upload buffer module 2214 or the flow control frame in the flow control packet generation module 2207. In this implementation scenario, the upload buffer module 2214 has a higher priority than the flow control packet generation module 2207. That is, when data transmission is possible, the second data packet arbitration module 2215 preferentially detects whether there are any upload Ethernet data packets to be transmitted in the upload buffer module 2214. If there are any, the upload Ethernet data packets in the upload buffer module 2214 are preferentially transmitted. Driven by the clock domain where the first transmission port 2201 is located, the upload Ethernet data packets are read from the upload buffer module 2214 and output to the second data packet arbitration module 2215 in that clock domain for transmission. If there are no upload Ethernet data packets to be transmitted in the upload buffer module 2214, the second data packet arbitration module 2215 detects whether there are any flow control frames to be transmitted in the flow control packet generation module 2207. If so, the flow control frames are transmitted.
[0098] Prioritizing the transmission of uploaded Ethernet data packets is because uploaded data is transmitted through high bandwidth and no congestion will occur. Prioritizing the transmission of data that needs to be uploaded to the network can ensure the efficiency of transmission. Transmitting flow control frames can achieve flow control when transmission congestion occurs in downloaded data, avoiding the aggravation of congestion.
[0099] The second signal conversion module 2216 is connected to the second data packet arbitration module 2215 and the first transmission port 2201. It converts the uplink Ethernet data packet or flow control frame selected for transmission by the second data packet arbitration module 2215 into an uplink Ethernet data packet signal and transmits the uplink Ethernet data packet signal to the first transmission port 2201. The second signal conversion module 2216 comprises a MAC transmission module 2216a, an encoding module 2216b, and a high-speed interface 2216c. The second signal conversion module 2216, operating on the first transmission port 2201, sequentially encapsulates and encodes the uplink Ethernet data packet or flow control frame via the MAC transmission module 2216a and encoding module 2216b, and then obtains the uplink Ethernet data packet signal via the high-speed interface 2216c. The first transmission port 2201 performs parallel-to-serial conversion on the uplink Ethernet data packet signal to obtain the converted uplink Ethernet data packet signal. The converted uplink Ethernet data packet signal is an analog signal or an optical signal. The converted uplink Ethernet data packet signal is transmitted via a cable / optical fiber to the receiving end interface 211 of the receiving component 21. The receiving end interface 211 decodes the uploaded Ethernet data packet signal after the parallel-to-serial conversion to obtain an uploaded Ethernet data packet or a flow control frame, and sends the uploaded Ethernet data packet or the flow control frame to the receiving component 21. The receiving component 21 can transmit the flow control frame to the network upper layer application of the communication receiving device 20 to notify the network upper layer application that the download link is currently blocked and that the sending of download data can be suspended, thereby achieving flow control of the download link. The receiving component 21 can also send the uploaded Ethernet data packet to the network upper layer application of the communication receiving device 20 to achieve successful transmission of the uploaded data.
[0100] From the above description, it can be seen that in this embodiment, the second data packet arbitration module is connected to the upload cache module and to the flow control packet generation module. When the upload cache module is not empty, the upload Ethernet data packet cached in the upload cache module is transmitted. When the upload cache module is empty and the flow control packet generation module generates a flow control frame, the flow control frame is transmitted. This can not only achieve successful transmission of uploaded data, but also achieve flow control when the download link is blocked, thereby ensuring the reliability and stability of transmission and improving transmission efficiency.
[0101] 2 , the receiving-end auxiliary component 22 further includes: a second data packet filtering and monitoring module 2217 and a second configuration and monitoring module 2218 .
[0102] Second packet filtering and monitoring module 2217 is connected between high-speed packet module 2214 and upload buffer module 2215. It is used to obtain the packet identifier of the uploaded Ethernet packets output by high-speed packet module 2214. The packet identifier includes the MAC address and IP address of the communicating parties (the transmitting and receiving devices), as well as the protocol type of the downloaded Ethernet packets. Second packet filtering and monitoring module 2217 filters the uploaded Ethernet packets based on the packet identifier. Upload Ethernet packets that meet preset conditions are transmitted to upload buffer module 2215. The remaining download Ethernet packets, which may be erroneous packets that fail verification or packets unrelated to the communicating parties, are discarded.
[0103] The second configuration and monitoring module 2218 is connected to the second data packet filtering and monitoring module 2217 and is used to set the filtering conditions for uploading Ethernet data packets by the second data packet filtering and monitoring module 2217. Users can add, modify, and delete filtering conditions through the second configuration and monitoring module 2218.
[0104] The second packet filtering and monitoring module 2217 can also monitor the transmission status of the uploaded Ethernet packet based on the packet identifier. It parses the packet identifier from the header of the transmitted uploaded Ethernet packet, monitors the sender and receiver of the previously transmitted downloaded Ethernet packet, determines whether the sender and receiver are correct and legal (i.e., whether they are the agreed sender and receiver), monitors the protocol type of the currently transmitted uploaded Ethernet packet, and determines the network connection status. If a problem occurs with the transmission status of the uploaded Ethernet packet, it indicates a problem with the module that generates the uploaded Ethernet packet. The second configuration and monitoring module 2218 detects the data transmission status of the second high-speed link, which is composed of the high-speed receiving component 2213 and the high-speed packet module 2214, based on the transmission status obtained by the second packet filtering and monitoring module 2217. If the output transmission status of the second high-speed link is abnormal, a second high-speed link abnormality alarm is output. This allows the user to take timely action based on the second high-speed link abnormality alarm.
[0105] From the above description, it can be seen that in this embodiment, the second data packet filtering and monitoring module obtains the data packet identifier of the uploaded Ethernet data, and filters the uploaded Ethernet data packet according to the data packet identifier to filter out erroneous or irrelevant uploaded Ethernet data packets, which can effectively reduce the number of uploaded Ethernet data packets that need to be transmitted subsequently, reduce the amount of data that needs to be transmitted, ensure the reliability and stability of the transmission, and improve the efficiency of the transmission.
[0106] Please refer to FIG. 1 and FIG. 3 in combination. FIG. 3 is a schematic structural diagram of an embodiment of a communication sending device provided by the present invention.
[0107] The communication transmitting device 10 includes a transmitting component 11 and a transmitting auxiliary component 12. The transmitting component 11 is used to divide the uploaded data into a finite number of packets of a certain length and encapsulate each packet according to the corresponding network transmission protocol (based on the UDP / TCP protocol suite) to generate an uploaded Ethernet packet that can be transmitted over the Internet. The transmitting component 11 includes a transmitting end network port 111, which converts the uploaded Ethernet packet into a corresponding upload signal and transmits it to the transmitting auxiliary component 12. The transmitting auxiliary component then transmits the corresponding information to the communication receiving device 20. The uploaded signal can be an analog signal or an optical signal.
[0108] The sending auxiliary component 12 includes a high-speed transmission port 1201 , a high-speed data packet conversion module 1202 , an upload cache module 1203 , a high-speed signal conversion module 1204 , and a high-speed sending port 1205 .
[0109] High-speed transmission port 1201 is connected to transmitting network port 111 via optical fiber or cable, receives the uploaded signal, converts the uploaded signal from an analog / optical signal to a corresponding digital signal, and obtains the uploaded digital signal. This can be done by converting the analog / optical signal into a corresponding serial digital signal, and then converting the serial digital signal into a parallel digital signal. High-speed transmission port 1201 can be a SERDES (serializer / deserializer, serial-to-parallel conversion) port or a PHY (physical layer) port.
[0110] High-speed packet conversion module 1202 is connected to high-speed transmission port 1201 and is used to convert the uploaded digital signal into an uploaded Ethernet packet. High-speed packet conversion module 1202 comprises a high-speed interface 1202a, a decoding module 1202b, and a MAC receiving module 1202c. These modules sequentially perform error correction, decoding, and frame header removal on the uploaded signal to obtain an uploaded Ethernet packet. High-speed interface 1202a, decoding module 1202b, and MAC receiving module 1202c operate in the same clock domain as high-speed transmission port 1201. The operating bandwidth of high-speed interface 1202a, decoding module 1202b, and MAC receiving module 1202c is 10G.
[0111] The upload buffer module 1203 is connected to the high-speed packet conversion module 1202 and is used to buffer uploaded Ethernet packets. The upload buffer module 1203 is a first-input, first-out (FIFO) memory. The uploaded Ethernet packets buffered in the upload buffer module 1203 are synchronized with the output clock domain of the high-speed transmission port 1201.
[0112] The high-speed signal conversion module 1204 is connected to the upload buffer module 1203 and is used to convert the upload Ethernet data packets cached in the upload buffer module 1203 into an upload Ethernet signal. The high-speed signal conversion module 1204 includes a MAC transmission module 1204a, an encoding module 1204b, and a high-speed interface 1204c. The high-speed signal conversion module 1204 operates in the same clock domain as the high-speed transmission port 1205. The MAC transmission module 1204a and encoding module 1204b sequentially encapsulate and encode the upload Ethernet data packets, which are then transmitted through the high-speed interface 1204c.
[0113] High-speed transmission port 1205 performs parallel-to-serial conversion on the uploaded Ethernet data packet signal to obtain a post-parallel-to-serial conversion Ethernet data packet signal. The post-parallel-to-serial conversion Ethernet data packet signal is an analog signal or an optical signal. The uploaded Ethernet data packet signal is used as a modulation signal to modulate the amplitude of the output laser. High-speed transmission port 1205 has a high transmission bandwidth, such as 10G. High-speed transmission port 1205 can be a SERDES (serializer / deserializer, serial-to-parallel conversion) port or a PHY (physical layer) port.
[0114] When the high-speed transmission port 1205 is ready to send a new data packet and the upload buffer module 1203 has an upload Ethernet data packet to be transmitted, the upload Ethernet data packet will be read from the upload buffer module 1203 under the drive of the clock domain where the high-speed transmission port 1205 is located and output to the high-speed signal conversion module 1204. The high-speed signal conversion module 1204 converts the upload Ethernet data packet into an upload Ethernet signal.
[0115] The uploading Ethernet signal is transmitted to the sending component 11 via a cable / optical fiber. The sending component 11 decodes the uploading Ethernet data packet and transmits the uploading Ethernet data packet to the network upper layer application of the communication sending device 10 to complete data download or flow control.
[0116] Furthermore, the transmitting-end auxiliary component 12 also includes a second packet filtering and monitoring module 1206 and a second configuration and monitoring module 1207. The second packet filtering and monitoring module 1206 is connected between the high-speed packet conversion module 1202 and the upload cache module 1203 and is configured to obtain the packet identifier of the uploaded Ethernet packet restored by the high-speed packet conversion module 1202. The packet identifier includes the MAC address and IP address of the communicating parties (the transmitting and receiving devices), as well as the protocol type of the downloaded Ethernet packet. Uploaded Ethernet packets are filtered based on the packet identifier. Uploaded Ethernet packets that meet preset conditions are transmitted to the packet upload cache module 1203 for caching. The remaining uploaded Ethernet packets, which may be erroneous packets that fail verification or packets unrelated to the communicating parties, are discarded.
[0117] The second configuration and monitoring module 1207 is connected to the second data packet filtering and monitoring module 1206 and is used to set the filtering conditions for uploading Ethernet data packets by the second data packet filtering and monitoring module 1206. Users can add, modify, and delete filtering conditions through the second configuration and monitoring module 1207.
[0118] The second packet filtering and monitoring module 1206 can also monitor the transmission status of the uploaded Ethernet packet based on the packet identifier. It parses the packet identifier from the header of the transmitted uploaded Ethernet packet, monitors the sender and receiver of the previously transmitted downloaded Ethernet packet, determines whether the sender and receiver are correct and legal (i.e., whether they are the agreed sender and receiver), monitors the protocol type of the currently transmitted uploaded Ethernet packet, and determines the network connection status. If a problem occurs with the transmission status of the uploaded Ethernet packet, it indicates a problem with the module generating the uploaded Ethernet packet. The second configuration and monitoring module 1207 detects the data transmission status of the second high-speed link, consisting of the high-speed transmission port 1201 and the high-speed packet conversion module 1202, based on the transmission status obtained by the second packet filtering and monitoring module 1206. If the output transmission status of the second high-speed link is abnormal, a second high-speed link abnormality alarm is output. This allows the user to take timely action based on the second high-speed link abnormality alarm.
[0119] The communication sending device 10 is also used to receive the download data transmitted by the communication receiving device 20. The sending auxiliary component 12 further includes: a low-speed receiving port 1208, a low-speed data packet module 1209, a download cache module 1210, and a high-speed data packet module 1211.
[0120] The auxiliary transmission component 12 includes an APD, which operates at a high bandwidth. In one implementation, it operates at a 10G bandwidth. The APD is used to receive the download-modulated laser light, convert it into a corresponding electrical signal, and amplify it to obtain the download electrical signal. The download-modulated laser light is the laser light sent by the communication receiving device 20 to transmit the download data.
[0121] Low-speed receive port 1208 is connected to the APD and is used to receive the download electrical signal and decode it into a corresponding serial digital signal. This serial digital signal is further converted into a parallel digital signal to obtain the download digital signal. This download digital signal is synchronized with the clock domain of low-speed receive port 1208. Low-speed receive port 1208 can be a SERDES (serializer / deserializer, serial-to-parallel conversion) port or a PHY (physical layer) port. The transmission bandwidth of low-speed receive port 1208 is low, for example, 1G.
[0122] Low-speed data packet module 1209 is connected to low-speed receiving port 1208 and is used to obtain download Ethernet data packets based on the download digital signal. Low-speed data packet module 1209 is synchronized with the clock domain of low-speed receiving port 1208. Low-speed data packet module 1209 includes a high-speed interface 1209a, a decoding module 1209b, and a MAC receiving module 1209c. These three modules sequentially perform error correction, decoding, and frame header removal on the download digital signal to generate the download Ethernet data packet.
[0123] Download cache module 1210 is connected to low-speed data packet module 1209 and is used to perform data stream bit width conversion on download Ethernet data packets and cache the converted data streams. This is because the download Ethernet data packets are derived from signals received by low-speed receiving port 1208 and are transmitted via high-speed transmission port 1201. The bit widths of the parallel data output by low-speed receiving port 1208 and high-speed transmission port 1201 are inconsistent. Therefore, the download Ethernet data must be pre-converted before the data contained therein can be smoothly output from high-speed transmission port 1201.
[0124] The high-speed data packet module 1211 is connected to the download cache module 1210 and is configured to convert the downloaded Ethernet data packets after data stream bit width conversion into downloaded Ethernet signals. The high-speed data packet module 1211 is synchronized with the clock domain of the high-speed transmission port 1201. The high-speed data packet module 1211 includes a MAC transmission module 1211a, an encoding module 1211b, and a high-speed interface 1211c. The MAC transmission module 1211a and the encoding module 1211b sequentially encapsulate and encode the downloaded Ethernet signals, and then output them to the high-speed transmission port 1201 via the high-speed interface 1211c.
[0125] The high-speed transmission port 1201 converts the download Ethernet signal into parallel-to-serial data and obtains the corresponding download Ethernet data packet signal. The download Ethernet data packet signal is an analog signal fire signal. The download Ethernet data packet signal is transmitted to the sending end network port 111 through the cable / optical fiber, and is then received by the sending component 11.
[0126] The sending component 11 decodes the download Ethernet data packet signal to obtain a download Ethernet data packet, and transmits the data packet to the network upper layer application of the communication sending device 10 to complete data download or flow control.
[0127] The transmission auxiliary component 12 also includes a first packet filtering and monitoring module 1212 and a first configuration and monitoring module 1213. The first packet filtering and monitoring module 1212, connected between the low-speed packet module 1209 and the download cache module 1210, is configured to obtain packet identifiers for downloaded Ethernet data. The packet identifiers include the MAC addresses and IP addresses of the communicating parties (the transmitting and receiving devices), as well as the protocol type of the downloaded Ethernet data packets. Downloaded Ethernet data packets are filtered based on the packet identifiers. Downloaded Ethernet data packets that meet pre-set criteria are transmitted to the download cache module 1210. Other downloading Ethernet data packets, such as erroneous packets that fail verification or are irrelevant to the communicating parties, are discarded.
[0128] The first configuration and monitoring module 1213 is connected to the first data packet filtering and monitoring module 1212 and is used to set filtering conditions for downloading Ethernet data packets by the first data packet filtering and monitoring module 1212. Users can add, modify, and delete filtering conditions through the first configuration and monitoring module 1213.
[0129] The first packet filtering and monitoring module 1212 can also monitor the transmission status of the downloaded Ethernet packets based on the packet identifier. It parses the packet identifier from the header of the transmitted downloaded Ethernet packets to monitor the sender and receiver of the previously transmitted downloaded Ethernet packets, whether the sender and receiver are correct and legal (i.e., whether they are the agreed sender and receiver), monitor the protocol type of the currently transmitted downloaded Ethernet packets, and determine the network connection status. If a problem occurs with the transmission status of the downloaded Ethernet packets, it indicates a problem with the module generating the downloaded Ethernet packets. Based on the transmission status obtained by the first packet filtering and monitoring module 1212, the first configuration and monitoring module 1213 detects the data transmission status of the low-speed link consisting of the low-speed receiving port 1201 and the low-speed packet module 1202. If the output transmission status of the low-speed link is abnormal, a low-speed link abnormality alarm is output. This allows the user to take timely action based on the low-speed link abnormality alarm.
[0130] Please refer to Figure 1, Figure 2 and Figure 3. The communication sending device in Figure 1 is the communication sending device shown in Figure 3, and the communication receiving device in Figure 1 is the communication receiving device shown in Figure 2.
[0131] In an implementation scenario, when data upload is required, the following steps are included:
[0132] Transmitter component 11 divides the uploaded data to be sent to communication receiving device 20 into a finite number of packets of a certain length and encapsulates each packet according to the corresponding network transmission protocol to generate an uploaded Ethernet packet that can be transmitted over the Internet. Transmitter network port 111 converts the uploaded Ethernet packet into a corresponding upload signal, which can be an analog signal or an optical signal, and transmits it to high-speed transmission port 1201.
[0133] The high-speed transmission port 1201 converts the analog / optical uplink signal into a corresponding digital signal, obtaining the uplink digital signal. The uplink digital signal is then processed by the high-speed interface 1202a, the decoding module 1202b, and the MAC receiving module 1202c, and then restored to an uplink Ethernet data packet.
[0134] The second packet filtering and monitoring module 1206 obtains the packet identifier of the uploaded Ethernet packet and filters out packets irrelevant to the communicating parties and erroneous packets based on the packet identifier. The uploaded Ethernet packets that meet the requirements are output to the upload buffer module 1203. The second packet filtering and monitoring module 1206 can also monitor the transmission status of the uploaded Ethernet packets based on the packet identifier.
[0135] The second configuration and monitoring module 1207 is used to configure the filtering conditions of the second data packet filtering and monitoring module 1206, and monitor the operating status of the high-speed link (high-speed transmission port 1201, high-speed data packet conversion module 1202) according to the transmission status of the uploaded Ethernet data packet, and output corresponding alarm information when the operating status is abnormal.
[0136] The upload cache module 1203 writes the correct upload Ethernet data packet cache output by the second data packet filtering and monitoring module 1206 into the clock domain where the high-speed transmission port 1201 is located. When the high-speed transmission port 1205 is ready to send a new data packet, the correct upload Ethernet data packet will be read out from the upload cache module 1203 and output to the MAC transmission module 1204a under the drive of the clock domain where the high-speed transmission port 1205 is located.
[0137] MAC transmission module 1204a and encoding module 1204b in the clock domain of high-speed transmission port 1205 encapsulate and encode the uploaded Ethernet data packet, and then output it to high-speed transmission port 1205 via high-speed interface 1204c. High-speed transmission port 1205 performs parallel-to-serial conversion on the received signal to obtain a corresponding analog signal of the uploaded Ethernet data packet. This analog signal is used as the modulation signal to modulate the amplitude of the output laser. The modulated laser is then emitted through the laser, and the uploaded Ethernet data packet propagates in free space along with the modulated laser.
[0138] The high-speed transmission port 1201 , the high-speed data packet conversion module 1202 , the high-speed signal conversion module 1204 , and the high-speed sending port 1205 all operate at a high bandwidth, for example, 10G.
[0139] The APD of the receiving auxiliary component 22 receives the modulated laser light, or the upload signal, converts it into a corresponding electrical signal, and amplifies it. The high-speed receiving port 2213a receives the amplified electrical signal and decodes it into the corresponding serial digital signal. This digital signal is further converted into a parallel digital signal, synchronized with the output clock domain of the high-speed receiving port 2213a, and becomes the upload digital signal. The upload digital signal undergoes error correction, decoding, and frame header removal in the high-speed interface 2213b, decoding module 2213c, and MAC receiving module 2213d, resulting in an upload Ethernet data packet.
[0140] The second packet filtering and monitoring module 2217 obtains the packet identifier of the uploaded Ethernet packet and filters out packets irrelevant to the communicating parties and erroneous packets based on the packet identifier. The uploaded Ethernet packets that meet the requirements are output to the upload buffer module 2215. The second packet filtering and monitoring module 2217 can also monitor the transmission status of the uploaded Ethernet packets based on the packet identifier.
[0141] The second configuration and monitoring module 2218 is used to set the filtering conditions for uploading Ethernet packets used by the second packet filtering and monitoring module 2217. It also monitors the operating status of the high-speed link based on the transmission status of the uploading Ethernet packets and outputs corresponding alarm information when the operating status is abnormal. The second configuration and monitoring module 2218 also transmits the monitored operating status of the high-speed link to the flow control packet generation module 2207.
[0142] The upload buffer module 2215 buffers the correct upload Ethernet data packet and writes it to the clock domain of the high-speed receive port 2213a. When the first transmission port 2201 is ready to send a new data packet, the correct upload Ethernet data packet is read from the upload buffer module 2215 and output to the MAC transmit module 2216a, driven by the clock domain of the first transmission port 2201.
[0143] The correct uploaded Ethernet data will be encapsulated and encoded by the MAC sending module 2216a and the encoding module 2216b in the clock domain where the first transmission port 2201 is located, and then transmitted to the first transmission port 2201 through the high-speed interface 2216c.
[0144] First transmission port 2201 performs parallel-to-serial conversion on the received signal to obtain a corresponding upload Ethernet data packet signal. The upload Ethernet data packet signal is then transmitted via a cable / optical fiber to receiving-end network port 211. Receiving-end network port 211 decodes the upload Ethernet data packet signal to obtain an upload Ethernet data packet and transmits the upload Ethernet data packet to the network upper layer application of communication receiving device 20 to complete the data upload.
[0145] The first transmission port 2201 , the high-speed receiving port 2213 a , the high-speed receiving component 2213 , and the second signal conversion module 2216 all operate at a high bandwidth, for example, 10G.
[0146] In an implementation scenario, when data download is required, the following steps are included:
[0147] Receiving component 21 receives download data to be transmitted to communication transmitting device 10, divides the download data into multiple packets of a predetermined length, and encapsulates each packet according to the network transmission protocol required for transmitting the download data, thereby generating download Ethernet packets. Receiving network port 211 converts the download Ethernet packets into corresponding download signals, which are then transmitted to first transmission port 2201 via a cable / optical fiber.
[0148] First transmission port 2201 converts the download signal from an analog / optical signal into a corresponding serial digital signal, which is then converted into a parallel digital signal. The parallel digital signal then passes through high-speed interface 2202a, decoding module 2202b, and MAC receiving module 2202c for error correction, decoding, and header removal, thereby restoring the downloaded Ethernet data packet. High-speed interface 2202a, decoding module 2202b, and MAC receiving module 2202c operate in the same clock domain as first transmission port 2201.
[0149] The first packet filtering and monitoring module 2212 obtains the packet identifier of the download Ethernet data packet and filters out data packets irrelevant to the communicating parties and erroneous data packets based on the packet identifier. The download Ethernet data packets that meet the requirements are output to the packet classification module 2203. The second packet filtering and monitoring module 1206 can also monitor the transmission status of the upload Ethernet data packet based on the packet identifier.
[0150] The first configuration and monitoring module 2211 is used to set the filtering conditions for the first data packet filtering and monitoring module 2212 to filter the downloaded Ethernet data packets, monitor the operation status of the high-speed link according to the transmission status of the downloaded Ethernet data packets, and output corresponding alarm information when the operation status is abnormal.
[0151] The packet classification module 2203 classifies the downloaded Ethernet packets restored by the restoration module 2202 into first-type packets and second-type packets based on packet length and type. First-type packets have higher priority than second-type packets. The first buffer module 2204a is configured to store first-type packets, and the second buffer module 2204b is configured to store second-type packets.
[0152] When the amount of data in the first cache module 2204a exceeds a preset threshold, the first cache module 2204a will no longer receive new first-type data packets, and new first-type data packets will be discarded. The cache status monitoring module 2206 will be notified that the corresponding link traffic is too heavy and packet loss is imminent. The first cache module 2204a will not receive new first-type data packets until it has enough space to buffer a certain number of new first-type data packets, and will then begin receiving new first-type data packets again. When the amount of data in the second cache module 2204b exceeds a preset threshold, the second cache module 2204b will no longer receive new second-type data packets, and new second-type data packets will be discarded. The cache status monitoring module 2206 will be notified that the corresponding link traffic is too heavy and packet loss is imminent, and will begin receiving new second-type data packets again until it has enough space to buffer a certain number of new second-type data packets.
[0153] When the cache status monitoring module 2206 detects excessive link traffic, it transmits the corresponding link traffic alarm to the flow control packet generation module 2207. The flow control packet generation module 2207 generates a corresponding flow control frame based on the high-bandwidth link configuration and the excessive link traffic information, and transmits it through the second data packet arbitration module 2215. The flow control frame is converted from the received signal by the second signal conversion module 2216 and the first transmission port 2201 through parallel-to-serial conversion to obtain a flow control frame signal. The flow control frame signal is then transmitted to the receiving end network port 211 via a cable / optical fiber. The receiving end network port 211 decodes the flow control frame from the uploaded Ethernet data packet signal and transmits a null flow pointer to the network upper layer application of the communication receiving device 20, causing the application to suspend sending download data, thereby completing flow control.
[0154] Based on the priorities of the first and second type packets, the first packet arbitration module 2205 selects a download Ethernet packet from the first and second buffer modules 2204a and 2204b and sends it to the MAC transmission module 2208a. The MAC transmission module 2208a and the encoding module 2208b then encapsulate and encode the selected download Ethernet packet, outputting it to the second transmission port 2209 via the high-speed interface 2208c. The second transmission port 2209 performs parallel-to-serial conversion on the selected packet, generating a corresponding download Ethernet packet signal. The analog signal of the download Ethernet packet is used as a modulation signal to modulate the amplitude of the output laser. The modulated laser light is then emitted through the laser, and the download Ethernet packet propagates in free space along with the modulated laser light.
[0155] The first transmission port 2201 and the restoration module 2202 both operate at a high bandwidth, for example, 10G. The signal conversion module 2208 and the second transmission port 2209 both operate at a low bandwidth, for example, 1G.
[0156] The APD in the auxiliary transmitting component 12 receives the modulated laser light, converts it into a corresponding electrical signal, and amplifies it to obtain the download electrical signal. The low-speed receiving port 1208 receives the download electrical signal and decodes it into a corresponding serial digital signal. This serial digital signal is further converted into a parallel digital signal to obtain the download digital signal. This download digital signal is synchronized with the clock domain of the low-speed receiving port 1208. The download digital signal then passes through the high-speed interface 1209a, decoding module 1209b, and MAC receiving module 1209c in the same clock domain as the low-speed receiving port 1208. After error correction, decoding, and frame header removal, the download Ethernet data packet is restored.
[0157] The first packet filtering and monitoring module 1212 obtains the packet identifier of the downloaded Ethernet data packet and filters out data packets irrelevant to the communicating parties and erroneous data packets based on the packet identifier. The downloaded Ethernet data packets that meet the requirements are output to the download buffer module 1210. The first packet filtering and monitoring module 1212 can also monitor the transmission status of the downloaded Ethernet data packet based on the packet identifier.
[0158] The first configuration and monitoring module 1213 is used to set the filtering conditions for the first data packet filtering and monitoring module 1212 on the downloaded Ethernet data packets, monitor the operation status of the low-speed link according to the transmission status of the downloaded Ethernet data packets, and output corresponding alarm information when the operation status is abnormal.
[0159] The upload buffer module 1203 performs bit width conversion on the correct download Ethernet data packets before caching them. This caching operation is performed in the clock domain of the low-speed receive port 1208. When a complete download Ethernet data packet exists in the upload buffer module 1203, it is read out in the clock domain of the high-speed transmit port 1205.
[0160] The download Ethernet data packet is encapsulated and encoded by MAC transmission module 1204a and encoding module 1204b, and then transmitted to high-speed transmission port 1205 via high-speed interface 1204c. High-speed transmission port 1205 performs parallel-to-serial conversion on the upload Ethernet data packet signal to obtain the upload Ethernet data packet signal. The uploaded Ethernet data packet signal after parallel-to-serial conversion is an analog signal or an optical signal. The uploaded Ethernet data packet signal after parallel-to-serial conversion is transmitted via a cable / optical fiber to the transmission component 11. Transmission component 11 decodes the uploaded Ethernet data packet and transmits the uploaded Ethernet data packet to the network upper layer application of the communication transmission device 10 to complete data download or flow control.
[0161] Please refer to Figure 4, which is a flow chart of an embodiment of a communication data transmission method provided by the present invention, which is applied to the communication system shown in Figure 1 or the communication receiving device shown in Figure 2. The communication data transmission method includes the following steps:
[0162] S101: Receive a download signal, and convert the download signal into a download Ethernet data packet.
[0163] S102: Classifying the downloaded Ethernet data packets into multiple types of data packets according to the length and type of the data packets, where different types of data packets have different priorities.
[0164] S103: Cache the data packets of various types into different cache modules respectively, and transmit the data packets of various types according to priority.
[0165] S104: monitoring the cache status of the cache module, and generating excessive traffic alarm information when the cache status of the cache module indicates that the current cached data amount exceeds a preset threshold.
[0166] S105: Generate a flow control frame according to the excessive flow alarm information, and use the flow control frame to notify the communication receiving device to suspend sending the download signal.
[0167] The specific contents of steps S101-S105 can refer to the above contents.
[0168] In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0169] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0170] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0171] Those skilled in the art will appreciate that all or part of the steps of the above-mentioned method embodiments may be implemented by hardware associated with program instructions, and the aforementioned program may be stored in a computer-readable storage medium. When the program is executed, the program executes the steps of the above-mentioned method embodiments. The aforementioned storage medium includes various media that can store program codes, such as mobile storage devices, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical disks.
[0172] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
[0173] The methods disclosed in the several method embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new method embodiments.
[0174] The features disclosed in several product embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new product embodiments.
[0175] The features disclosed in several method or device embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0176] The above is a further detailed description of the present invention in conjunction with specific preferred embodiments, and the specific implementation of the present invention should not be considered to be limited to these descriptions. Those skilled in the art will recognize that, without departing from the scope of the present invention, several equivalent substitutions or obvious variations can be made, and the performance or use of the same should be considered to fall within the scope of protection of the present invention.
Claims
1. A communication receiving device, characterized in that: Applied to a communication system, the communication system comprises a communication sending device, the communication receiving device is used to transmit download data to the communication sending device and receive upload data transmitted by the communication sending device, wherein a bandwidth for transmitting the download data is smaller than a bandwidth for transmitting the upload data; The communication receiving device comprises: A receiving component, used for dividing the download data into download Ethernet data packets, the receiving component comprising a receiving end network port connected to the receiving component, used for converting the download Ethernet data packets into download signals; Receiver auxiliary components, including: A first transmission port, connected to the receiving end network port, for receiving the download signal; A restoration module, connected to the first receiving port, for restoring the download signal to the download Ethernet data packet; A data packet classification module, connected to the restoration module, for classifying the downloaded Ethernet data packets into multiple types of data packets according to the length and type of the data packets, and different types of data packets have different priorities; A plurality of cache modules are connected to the data packet classification module, the plurality of cache modules correspond to the plurality of types of data packets one by one, and each of the cache modules is used to cache a type of data packet; a first data packet arbitration module, connected to the first cache module and the second cache module, and configured to perform data bit width conversion on the first type of data packets in the first cache module and the second type of data packets in the second cache module according to the priority and then transmit them; a cache status monitoring module, connected to the first cache module and the second cache module, and used to monitor the cache status of the first cache module and the second cache module; when the cache status of at least one of the first cache module and the second cache module is that the current cache data amount exceeds a preset threshold, an excessive traffic alarm message is generated; The flow control packet generation module is connected to the cache status monitoring module and is used to generate a flow control frame according to the excessive flow alarm information, and the flow control frame is used to notify the receiving component to suspend sending the download signal.
2. The communication receiving device according to claim 1, characterized in that: The receiving end auxiliary component also includes: a first signal conversion module, connected to the first data packet arbitration module, and used for converting the first type of data packet and / or the second type of data packet selected for transmission by the first data packet arbitration module into a download Ethernet data packet signal, wherein the transmission bandwidth of the signal conversion module is smaller than the transmission bandwidth of the restoration module; The second transmission port is used to generate a download modulated laser according to the Ethernet data packet analog signal and emit the download modulated laser.
3. The communication receiving device according to claim 1, characterized in that: The receiving end auxiliary component also includes: a first data packet filtering and monitoring module, connected between the restoration module and the data packet classification module, for obtaining a data packet identifier of the downloaded Ethernet data, and filtering the downloaded Ethernet data packet according to the data packet identifier to filter out erroneous or irrelevant downloaded Ethernet data packets; A first configuration and monitoring module, connected to the data packet filtering and monitoring module, for setting filtering conditions of the data packet filtering and monitoring module for the downloaded Ethernet data packet; The first data packet filtering and monitoring module is also used to monitor the download transmission status of the download Ethernet data packet according to the data packet identifier, and the first configuration and monitoring module is used to monitor the data transmission status of the first high-speed link composed of the first transmission port and the restoration module according to the download transmission status, and output the first high-speed link abnormal alarm information when the output transmission status of the first high-speed link is abnormal.
4. The communication receiving device according to claim 1, characterized in that: The receiving end auxiliary component also includes: A high-speed receiving component, used to receive an upload optical signal sent by a communication sending device for transmitting upload data, and convert the upload optical signal into an upload digital signal; A high-speed data packet module, connected to the high-speed receiving component, for acquiring an upload Ethernet data packet according to the upload digital signal; An upload cache module, connected to the high-speed data packet module, for caching the upload Ethernet data packets; a second data packet arbitration module, connected to the upload cache module and to the flow control packet generation module, for transmitting the upload Ethernet data packet cached in the upload cache module when the upload cache module is not empty, and for transmitting the flow control frame when the upload cache module is empty and the flow control packet generation module generates a flow control frame; a second signal conversion module, connected to the second data packet arbitration module and connected to the first transmission port, used for converting the upload Ethernet data packet or flow control frame selected for transmission by the second data packet arbitration module into an upload Ethernet data packet signal, and sending the upload Ethernet data packet signal to the first transmission port; The first transmission port is also used to perform parallel-to-serial conversion on the uploaded Ethernet data packet signal and transmit it to the receiving end network port. The receiving end network port is also used to obtain an uploaded Ethernet data packet or a flow control frame according to the uploaded Ethernet data packet signal after the parallel-to-serial conversion, and send the uploaded Ethernet data packet or the flow control frame to the receiving component.
5. The communication receiving device according to claim 4, characterized in that: The receiving end auxiliary component also includes: a second data packet filtering and monitoring module, connected between the high-speed data packet module and the upload cache module, for obtaining an upload data packet identifier of the uploaded Ethernet data, and filtering the uploaded Ethernet data packet according to the upload data packet identifier to delete erroneous or irrelevant uploaded Ethernet data packets; A second configuration and monitoring module, connected to the first data packet filtering and monitoring module, used to set the filtering conditions of the first data packet filtering and monitoring module for the uploaded Ethernet data packet; The second data packet filtering and monitoring module and / or the second configuration and monitoring module are used to monitor the data transmission status of the second high-speed link composed of the high-speed receiving component and the high-speed data packet module, and output second high-speed link abnormal alarm information when the output transmission status of the second high-speed link is abnormal.
6. A communication sending device, characterized in that: Applied to a communication system, the communication system further comprises a communication receiving device, the communication sending device is used to transmit upload data to the communication receiving device and receive download data transmitted by the communication receiving device, wherein a bandwidth for transmitting the download data is smaller than a bandwidth for transmitting the upload data; The communication sending device comprises: Send auxiliary components, including: an avalanche photodiode, used to convert the download modulated laser into a download electrical signal, wherein the download modulated laser is a laser sent by a communication receiving device for transmitting download data; A low-speed receiving port, connected to an avalanche photodiode, for receiving the download electrical signal and decoding the corresponding download digital signal therefrom; A low-speed data packet module, connected to the low-speed receiving port, and used for acquiring a download Ethernet data packet according to the download digital signal; A download cache module, connected to the low-speed data packet module, for performing data stream bit width conversion on the download Ethernet data packet, and caching the download Ethernet data packet after the data stream bit width conversion processing; A high-speed data packet module, connected to the download cache module, for converting the download Ethernet data packet after the data stream bit width conversion process into a download Ethernet signal; A high-speed transmission port, used to convert the download Ethernet signal into a download Ethernet data packet signal; The sending component includes a sending end network port, which is connected to the sending auxiliary component and is used to obtain the download Ethernet data packet according to the download Ethernet data packet signal.
7. The communication sending device according to claim 6, characterized in that: The sending component is also used to divide the uploaded data into uploaded Ethernet data packets; The transmitting end network port is also used to convert the uploaded Ethernet data packet into an upload signal; The high-speed transmission port is also used to convert the upload signal into an upload digital signal. The sending auxiliary component also includes: A high-speed data packet conversion module, connected to the high-speed transmission port, for generating an upload Ethernet data packet according to the upload digital signal; An upload cache module, connected to the high-speed data packet conversion module, for caching the upload Ethernet data packets; A high-speed signal conversion module, connected to the upload cache module, for converting the upload Ethernet data packets cached in the upload cache module into upload Ethernet signals; The high-speed transmission port is connected to the high-speed signal conversion module and is used to generate a download modulated laser according to the upload Ethernet signal and emit the download modulated laser.
8. The communication sending device according to claim 7, characterized in that: The sending auxiliary component also includes: a first data packet filtering and monitoring module, connected between the low-speed data packet module and the download cache module, for obtaining a data packet identifier of the download Ethernet data, and filtering the download Ethernet data packet according to the data packet identifier to delete an erroneous or irrelevant download Ethernet data packet; A first configuration and monitoring module, connected to the first data packet filtering and monitoring module, used to set the filtering conditions of the first data packet filtering and monitoring module for the downloaded Ethernet data packet; The first data packet filtering and monitoring module and / or the first configuration and monitoring module are used to monitor the data transmission status of the low-speed link composed of the low-speed receiving port and the low-speed data packet module, and output low-speed link abnormality alarm information when the output transmission status of the low-speed link is abnormal; a second data packet filtering and monitoring module, connected between the high-speed data packet conversion module and the upload cache module, for obtaining an upload data packet identifier of the upload Ethernet data packet, filtering the upload Ethernet data packet according to the upload data packet identifier to delete erroneous or irrelevant upload Ethernet data packets; A second configuration and monitoring module, connected to the second data packet filtering and monitoring module, used to set the filtering conditions of the second data packet filtering and monitoring module for the uploaded Ethernet data packet; The second data packet filtering and monitoring module and / or the second configuration and monitoring module are used to monitor the data transmission status of the high-speed link composed of the high-speed transmission port and the high-speed data packet conversion module, and output high-speed link abnormal alarm information when the output transmission status of the high-speed link is abnormal.
9. A communication system, characterized in that: It comprises a communication receiving device and a communication sending device, wherein the communication receiving device is the communication receiving device described in any one of claims 1-5, and the communication sending device is the communication sending device described in any one of claims 6-8.
10. A communication data transmission method, characterized in that: A communication receiving device used in a traffic system, wherein the communication system further comprises a communication sending device, wherein the communication receiving device is used to transmit download data to the communication sending device and receive upload data transmitted by the communication sending device, wherein a bandwidth for transmitting the download data is smaller than a bandwidth for transmitting the upload data; The communication data transmission method comprises: receiving a download signal, and restoring the download signal to the download Ethernet data packet; Classifying the downloaded Ethernet data packets into multiple types of data packets according to the length and type of the data packets, and different types of data packets have different priorities; Cache the different types of data packets in different cache modules respectively, and transmit the multiple types of data packets according to the priorities; Monitoring the cache state of the cache module, and generating excessive traffic alarm information when the cache state of the cache module indicates that the current cache data amount exceeds a preset threshold; A flow control frame is generated according to the excessive flow alarm information, and the flow control frame is used to notify the communication receiving device to suspend sending the download signal.
Citation Information
Patent Citations
Method and system for realizing downlink Qos of family gateway
CN101605057A
Network system and method for guaranteeing multi-type service quality
CN102075444A
Data transmission method and device
CN115174821A
Method for Controlling Traffic by Using Type Information, Terminal Therefor
KR1020140038808A
