Message transmission method and device, electronic equipment and computer readable storage medium
By deploying a funnel structure in the FTTR network to cache and forward packets, the problem of packet loss caused by traffic bursts due to mismatched network device port rates was solved, and normal transmission was achieved during traffic bursts.
Patent Information
- Application Number
- CN202311766334.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-20
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-12-20
AI Technical Summary
In a Fiber to the Room (FTTR) network architecture, packet loss occurs during traffic bursts due to mismatched network device port speeds.
Deploy a funnel structure between the interfaces of network devices, including the funnel opening, the funnel hole, and the funnel body. Identify whether a packet needs to be cached by the threshold of the funnel hole, cache the packet in the funnel body, and forward the packet according to the rate represented by the threshold of the funnel hole.
During traffic surges, packets are avoided from being dropped directly. Instead, a funnel structure is used to cache and forward packets, ensuring normal packet transmission and mitigating packet loss caused by port rate mismatch.
Smart Images

Figure CN117793581B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of optical communication technology, and in particular to message transmission methods, apparatus, electronic devices and computer-readable storage media. Background Technology
[0002] In a Fiber To The Room (FTTR) network architecture, there may be a mismatch in the port speeds supported by the ports on different network devices. For example, port a1 on network device a along the data transmission path may support a port speed of 10Gbps, while port b1 on network device b may support a port speed of 2.5Gbps. This indicates a mismatch in the port speeds supported by the ports on the network devices.
[0003] In the above situations, if a sudden surge in traffic occurs, traffic congestion will occur, resulting in packet loss and affecting the business experience. Summary of the Invention
[0004] In view of this, this application provides a message transmission method, apparatus, electronic device, and computer-readable storage medium to alleviate the problem of message packet loss during sudden large traffic surges caused by mismatched network device port rates in related technologies.
[0005] The technical solution provided in this application is as follows:
[0006] According to an embodiment of the first aspect of this application, a message transmission method is proposed. This method is applied to a network device in a fiber-to-the-room (FTTR) network, wherein the network device is equipped with a funnel comprising two interfaces. The funnel includes at least: a funnel opening, a leak hole, and a funnel body; wherein the funnel opening is one interface, and the leak hole is the other interface; the method includes:
[0007] If a message is received through the first interface of this network device, and if this network device has deployed a first funnel including the first interface and the second interface, then based on the current leakage threshold of the first leakage hole in the first funnel, it is determined whether the received message needs to be cached.
[0008] If, based on the current threshold of the first leak, it is identified that the received message needs to be cached, then the received message is cached in the first funnel body of the first funnel.
[0009] According to the message transmission rate represented by the current leak threshold of the first leak, the message already cached in the first bucket body is forwarded through the second interface.
[0010] Optionally, if the network device is the master device and the first funnel is a downlink optical funnel, then the first opening of the first funnel is the uplink optical port of the master device, and the first hole of the first funnel is the downlink optical port of the master device.
[0011] If the network device is the master device, and the first funnel is a downlink Wi-Fi funnel, then the first opening of the first funnel is the uplink optical port of the master device, and the first hole of the first funnel is the radio frequency port of the master device.
[0012] If the network device is a slave device, and the first funnel is a downlink Wi-Fi funnel, then the first opening of the first funnel is the optical port of the slave device, and the first hole of the first funnel is the radio frequency port of the slave device.
[0013] Optionally, if the network device is the master device and the first funnel is an uplink optical funnel, then the first opening of the first funnel is the downlink optical port of the master device, and the first hole of the first funnel is the uplink optical port of the master device.
[0014] If the network device is the master device, and the first funnel is an uplink Wi-Fi funnel, then the first opening of the first funnel is the radio frequency port of the master device, and the first hole of the first funnel is the uplink optical port of the master device.
[0015] If the network device is a slave device, and the first funnel is an uplink Wi-Fi funnel, then the first opening of the first funnel is the radio frequency port of the slave device, and the first hole of the first funnel is the optical port of the slave device.
[0016] Optionally, identifying whether the received message needs to be buffered based on the current leak threshold of the first leak in the first funnel includes:
[0017] If the current threshold value of the first hole in the first funnel is a preset value, then it is determined that the received message does not need to be cached at present.
[0018] If the current threshold value of the first hole in the first funnel is not a preset value, then it is determined that the received message needs to be cached.
[0019] Optionally, the initial leakage threshold of the first leakage point is a preset value, which is used to instruct the network device to prohibit the first funnel in the first funnel from buffering packets received by the network device; the method further includes:
[0020] When it is detected that the number of packets lost continuously within a first preset time period reaches a preset number and the peak packet transmission rate of the second interface no longer increases within the second preset time period, the vulnerability threshold of the first vulnerability is adjusted to a second value. The second value is different from the preset value and is determined by the network device based on the peak packet transmission rate of the second interface.
[0021] Optionally, the method further includes:
[0022] When the threshold value of the first leak is the second value, if the packet transmission rate of the second interface is detected to be lower than the second value within a third preset time period, the threshold value of the first leak is adjusted to the preset value.
[0023] According to an embodiment of the second aspect of this application, a message transmission device is provided, which is applied to a network device in a fiber-to-the-room (FTTR) network. The network device is equipped with a funnel comprising two interfaces, the funnel including at least: a funnel opening, a leak hole, and a funnel body; wherein the funnel opening is one interface, and the leak hole is the other interface; the device includes:
[0024] The receiving unit is used to receive packets through the first interface of the network device. If the network device has deployed a first funnel including the first interface and the second interface, it identifies whether the received packet needs to be cached based on the current leakage threshold of the first leakage hole in the first funnel.
[0025] A buffer unit is used to buffer the received message in the first funnel body of the first funnel if it is identified that the received message needs to be buffered based on the current funnel threshold of the first funnel.
[0026] The forwarding unit is used to forward messages that have been cached in the first body through the second interface according to the message transmission rate characterized by the current leak threshold of the first leak.
[0027] Optionally, if the network device is the master device and the first funnel is a downlink optical funnel, then the first opening of the first funnel is the uplink optical port of the master device, and the first hole of the first funnel is the downlink optical port of the master device.
[0028] If the network device is the master device, and the first funnel is a downlink Wi-Fi funnel, then the first opening of the first funnel is the uplink optical port of the master device, and the first hole of the first funnel is the radio frequency port of the master device.
[0029] If the network device is a slave device, and the first funnel is a downlink Wi-Fi funnel, then the first opening of the first funnel is the optical port of the slave device, and the first hole of the first funnel is the radio frequency port of the slave device;
[0030] And / or, if the network device is the master device and the first funnel is the uplink optical funnel, then the first opening of the first funnel is the downlink optical port of the master device, and the first hole of the first funnel is the uplink optical port of the master device.
[0031] If the network device is the master device, and the first funnel is an uplink Wi-Fi funnel, then the first opening of the first funnel is the radio frequency port of the master device, and the first hole of the first funnel is the uplink optical port of the master device.
[0032] If the network device is a slave device, and the first funnel is an uplink Wi-Fi funnel, then the first opening of the first funnel is the radio frequency port of the slave device, and the first hole of the first funnel is the optical port of the slave device;
[0033] And / or, the receiving unit is specifically used for:
[0034] If the current threshold value of the first hole in the first funnel is a preset value, then it is determined that the received message does not need to be cached at present.
[0035] If the current threshold of the first leak in the first funnel is not a preset value, then it is determined that the received message needs to be buffered.
[0036] And / or, the initial leakage threshold of the first leakage point is a preset value, the preset value being used to instruct the network device to prohibit the first funnel in the first funnel from buffering packets received by the network device; the buffering unit is further used for:
[0037] When it is detected that the number of packets lost continuously within a first preset time period reaches a preset number and the peak packet transmission rate of the second interface no longer increases within the second preset time period, the leakage threshold of the first leakage hole is adjusted to a second value. The second value is different from the preset value. The second value is determined by this network device based on the peak packet transmission rate of the second interface.
[0038] And / or, the receiving unit is further configured to:
[0039] When the threshold value of the first leak is the second value, if the packet transmission rate of the second interface is detected to be lower than the second value within a third preset time period, the threshold value of the first leak is adjusted to the preset value.
[0040] According to an embodiment of the third aspect of this application, an electronic device is proposed, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method as described in the first aspect.
[0041] According to an embodiment of the fourth aspect of this application, a computer-readable storage medium is provided having a program stored thereon that, when executed by a processor, implements the method described in the first aspect.
[0042] As can be seen from the above technical solutions, the embodiments of this application deploy a funnel between the first and second interfaces of the network device in the FTTR network. A message is received through the first interface. If, based on the current leak threshold, it is identified that the received message needs to be cached, the received message is cached in the funnel body. Then, according to the current leak threshold, the message already cached in the funnel body is forwarded through the second interface. Through this method, when a traffic surge occurs, congested messages are first cached in the funnel body instead of being directly discarded. Furthermore, the messages cached in the funnel body are forwarded according to the message transmission rate represented by the leak threshold. This ensures normal message transmission even during traffic surges, alleviating the problem of packet loss during sudden large traffic surges caused by mismatched network device port rates in related technologies. Attached Figure Description
[0043] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the principles of this application.
[0044] Figure 1 This is a schematic diagram of an FTTR network provided in an embodiment of this application;
[0045] Figure 2 A flowchart of a message transmission method provided in an embodiment of this application;
[0046] Figure 3 A schematic diagram of a downlink optical funnel provided in an embodiment of this application;
[0047] Figure 4 A schematic diagram of a downlink Wi-Fi funnel provided in an embodiment of this application;
[0048] Figure 5 A schematic diagram of an uplink optical funnel provided in an embodiment of this application;
[0049] Figure 6 A schematic diagram of an uplink Wi-Fi funnel provided in an embodiment of this application;
[0050] Figure 7 A schematic structural diagram of an electronic device provided in an embodiment of this application;
[0051] Figure 8 This is a structural diagram of a message transmission device provided in an embodiment of this application. Detailed Implementation
[0052] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0053] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0054] It should be understood that although the terms first, second, third, etc., may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."
[0055] Before providing a detailed description of the technical solutions in the embodiments of this application, a brief introduction to Fiber to the Room (FTTR) networking will be given first.
[0056] Please refer to Figure 1 , Figure 1 This is a schematic diagram of FTTR networking provided in an embodiment of this application.
[0057] like Figure 1As shown, an FTTR network consists of multiple network devices, including one master device and multiple slave devices. The uplink optical port of the master device acts as an Optical Network Unit (ONU) connecting to the optical line terminal (OLT) device of the uplink network, serving as the main entry point of the local network. Simultaneously, the master device itself acts as an OLT, forming a passive optical network (PON) with the slave devices through its downlink optical port. The slave devices act as ONUs with the master device through their optical ports, forming a PON network. The slave devices include optical ports and radio frequency (RF) ports, possessing RF capabilities and providing Wi-Fi services. The master device includes at least an uplink optical port and a downlink optical port. Optionally, the master device may also include an RF port. A master device with an RF port also possesses RF capabilities and can provide Wi-Fi services.
[0058] In the FTTR network described above, it is easy to understand that the port rates supported by the ports on each network device may be mismatched. If there is a sudden surge in traffic, congestion and packet loss may occur.
[0059] In this embodiment, for downlink packets sent from the central office OLT to a terminal accessed via the radio frequency port of a network device (slave device or master device with radio frequency capability), congestion and packet loss may occur under the following circumstances:
[0060] A1) When a message is a downlink message sent by the central office OLT to a terminal accessed by the RF port of the slave device, if the central office OLT sends a sudden large amount of data to the master device and the message transmission rate exceeds the maximum transmission rate that the downlink optical port of the master device can currently transmit, congestion and packet loss will occur between the uplink optical port and the downlink optical port of the master device.
[0061] A2) When a message is a downlink message sent from the central office OLT to a terminal accessed via the RF port of the slave device, if the message transmission rate forwarded by the master device to the slave device exceeds the maximum transmission rate currently allowed by the slave device's RF port, congestion and packet loss will occur between the optical port and the RF port of the slave device. Specifically, when the destination is a 2.4G wireless terminal and the message transmission rate exceeds the maximum transmission rate currently allowed by the 2.4G RF port, congestion and packet loss will occur between the optical port and the RF port; when the destination is a 5G wireless terminal and the message transmission rate exceeds the maximum transmission rate currently allowed by the 5G RF port, congestion and packet loss will also occur between the optical port and the RF port.
[0062] A3) When a message is a downlink message sent by the central office OLT to a terminal accessed via the RF port of the main device, if the message transmission rate forwarded by the OLT to the main device exceeds the current maximum transmission rate of the main device's RF port, congestion and packet loss will occur between the uplink optical port and the RF port of the main device. Specifically, when the destination is a 2.4G wireless terminal and the message transmission rate exceeds the current maximum transmission rate of the 2.4G RF port, congestion and packet loss will occur between the uplink optical port and the RF port; when the destination is a 5G wireless terminal and the message transmission rate exceeds the current maximum transmission rate of the 5G RF port, congestion and packet loss will also occur between the uplink optical port and the RF port.
[0063] In this embodiment, for uplink packets sent from a terminal accessed via the radio frequency port of a network device (slave device or master device with radio frequency capability) to the central office OLT, congestion and packet loss may occur under the following circumstances:
[0064] B1) When a message is an uplink message sent from a terminal accessed by the RF port of a slave device to the central office OLT, if multiple slave devices generate large traffic simultaneously and their total message transmission rate exceeds the maximum transmission rate that the master device's uplink optical port can currently transmit, congestion and packet loss will occur between the master device's downlink optical port and uplink optical port.
[0065] B2) When a message is an uplink message sent from a terminal accessed via the RF port of the slave device to the central office OLT, if the sum of the message transmission rates forwarded to the slave device by each RF port exceeds the maximum transmission rate currently allowed by the slave device's optical port, congestion and packet loss will occur between the slave device's RF port and optical port. Specifically, when 2.4G and 5G wireless terminals generate traffic simultaneously, or when a 5G wireless terminal generates a large amount of traffic, and the sum of their uplink message transmission rates exceeds the maximum transmission rate currently allowed by the slave device's optical port, congestion and packet loss will occur between the slave device's RF port and optical port.
[0066] B3) When a message is an uplink message sent from a terminal accessed by the main device's RF port to the central office OLT, if the sum of the message transmission rates forwarded to the main device by each RF port exceeds the maximum transmission rate currently available on the main device's uplink optical port, congestion and packet loss will occur between the main device's RF port and the uplink optical port. Specifically, when 2.4G and 5G wireless terminals generate traffic simultaneously, or when a 5G wireless terminal generates a large amount of traffic, and the sum of their uplink message transmission rates exceeds the maximum transmission rate currently available on the main device's uplink optical port, congestion and packet loss will occur between the main device's RF port and the uplink optical port.
[0067] The currently transmittable maximum rate mentioned above does not refer to the maximum transmission rate supported by the port. The maximum transmission rate supported by the port is the theoretical maximum transmission rate that the port can perform lossless transmission at. The currently transmittable maximum rate is generally lower than the theoretical maximum rate, and the difference may be significant. It is easy to understand that when the actual transmission rate of a packet exceeds the currently transmittable maximum rate, congestion and packet loss will occur.
[0068] To alleviate the aforementioned problems in the related technologies, the technical solutions in the embodiments of this application will be further described in detail below with reference to the accompanying drawings.
[0069] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating a message transmission method provided in an embodiment of this application. The method is applied to network equipment in a fiber-to-the-room (FTTR) network, where a funnel with two interfaces is deployed on the network equipment. The funnel includes at least an opening, a perforation, and a body; wherein the opening is one interface and the perforation is the other interface.
[0070] In this embodiment, a funnel is deployed between the ingress and egress interfaces of the network device. The funnel may include an opening, a perforation, and a body. The opening is the packet ingress point, the perforation is the packet egress point, and the perforation has a corresponding perforation threshold. The perforation threshold indicates the rate at which packets are sent through the packet egress point. The body is used to buffer congested packets. This funnel can be a software or hardware structure, and this application does not limit its implementation.
[0071] It is easy to understand that since a network device may have multiple ingress interfaces and multiple egress interfaces, multiple funnels can be deployed on a network device, and this application does not limit this.
[0072] It should be noted that "funnel" is merely a more descriptive name for the newly added structure in this embodiment, used to refer to the structure and device that conforms to the above design concept, and this application does not limit it.
[0073] like Figure 2 As shown, the method may include the following steps:
[0074] Step 201: Receive a message through the first interface of this network device. If this network device has deployed a first funnel including the first interface and the second interface, then based on the current leakage threshold of the first leakage hole in the first funnel, identify whether the received message needs to be cached.
[0075] In this embodiment, the first interface is used to receive messages, and the second interface is used to forward messages.
[0076] In this embodiment, the network device can be either the master device or the slave device in an FTTR network.
[0077] Specifically, in this embodiment, if the network device is the master device and the first funnel is the downlink optical funnel, then the first opening of the first funnel is the uplink optical port of the master device, and the first hole of the first funnel is the downlink optical port of the master device.
[0078] If the network device is the master device, and the first funnel is a downlink Wi-Fi funnel, then the first opening of the first funnel is the uplink optical port of the master device, and the first hole of the first funnel is the radio frequency port of the master device.
[0079] If the network device is a slave device, and the first funnel is a downlink Wi-Fi funnel, then the first opening of the first funnel is the optical port of the slave device, and the first hole of the first funnel is the radio frequency port of the slave device.
[0080] Among them, the downlink optical funnel and the downlink Wi-Fi funnel can be collectively referred to as the downlink funnel.
[0081] In this embodiment, if the network device is the master device and the first funnel is the uplink optical funnel, then the first opening of the first funnel is the downlink optical port of the master device, and the first hole of the first funnel is the uplink optical port of the master device.
[0082] If the network device is the master device, and the first funnel is an uplink Wi-Fi funnel, then the first opening of the first funnel is the radio frequency port of the master device, and the first hole of the first funnel is the uplink optical port of the master device.
[0083] If the network device is a slave device, and the first funnel is an uplink Wi-Fi funnel, then the first opening of the first funnel is the radio frequency port of the slave device, and the first hole of the first funnel is the optical port of the slave device.
[0084] Among them, the uplink optical funnel and the uplink Wi-Fi funnel can be collectively referred to as the uplink funnel.
[0085] The following text will refer to the four types of funnels mentioned above. Figures 3 to 6 The funnel diagram is described in detail, and will not be repeated here.
[0086] In this embodiment, the method for identifying whether the received message needs to be buffered based on the current leakage threshold of the first leakage hole in the first funnel can be:
[0087] If the current threshold value of the first hole in the first funnel is a preset value, then it is determined that the received message does not need to be cached at present.
[0088] If the current threshold value of the first hole in the first funnel is not a preset value, then it is determined that the received message needs to be cached.
[0089] The initial threshold value of the first leak is a preset value, which is used to instruct the network device to prohibit the first funnel in the first funnel from buffering the packets received by the network device.
[0090] When it is detected that the number of packets lost continuously within a first preset time period reaches a preset number and the peak packet transmission rate of the second interface no longer increases within the second preset time period, the vulnerability threshold of the first vulnerability is adjusted to a second value. The second value is different from the preset value and is determined by the network device based on the peak packet transmission rate of the second interface.
[0091] It is easy to understand that when the message transmission rate does not reach the maximum transmission rate that the interface can currently transmit, there is no need to activate the aforementioned funnel. Therefore, the initial leakage threshold of the funnel is set to a preset value. When the leakage threshold is detected to be the preset value, the funnel does not buffer or rate-limit messages, and all messages are transmitted normally. At this time, the funnel can be said to be in a transparent state, and there is no need to buffer received messages. As an example, the aforementioned preset value can be 0.
[0092] When the message transmission rate exceeds the maximum transmission rate that the interface can currently transmit, traffic congestion will occur because the network device cannot forward all the received messages at the same time, resulting in some message loss. It is necessary to enable the funnel to buffer the congested messages.
[0093] In this embodiment, when a preset number of packets are continuously lost within a first preset time period, it indicates that traffic congestion may have occurred. Furthermore, when the peak packet transmission rate of the network device's outgoing interface stops increasing, it indicates that the maximum transmission rate currently achievable by the network device's outgoing interface has been reached, and traffic congestion has begun. At this point, the leak threshold is set to a second value, which is the detected peak packet transmission rate of the outgoing interface. This second value differs from the preset value. At this time, the funnel can be considered to be in a non-transparent state, requiring buffering of received packets.
[0094] Since the current vulnerability threshold is not the preset value, it is determined that the received message needs to be buffered.
[0095] Step 202: If, based on the current threshold of the first leak, it is identified that the received message needs to be cached, then the received message is cached in the first funnel body of the first funnel.
[0096] In this embodiment, the method for identifying the current need to cache the received message based on the current leak threshold of the first leak is described in step 201. When it is determined that the received message needs to be cached, it is determined that the funnel is in a non-transparent state. At this time, the received message is cached in the funnel body of the first funnel.
[0097] Step 203: According to the message transmission rate represented by the current leak threshold of the first leak, forward the message already cached in the first bucket body through the second interface.
[0098] When the first funnel is in a non-transparent state, the first funnel body begins to buffer the received messages, and the first leak also begins to forward the messages buffered in the funnel body according to the current leak threshold (i.e., the peak message transmission rate of the outgoing interface detected in step 201).
[0099] In this embodiment, the number of messages that can be contained in any funnel can be preset, and this application does not limit this.
[0100] In this embodiment, the method may further include:
[0101] When the threshold value of the first leak is the second value, if the packet transmission rate of the second interface is detected to be lower than the second value within a third preset time period, the threshold value of the first leak is adjusted to the preset value.
[0102] It's easy to understand that when the first leak's threshold is the second value (i.e., the funnel is in a non-transparent state), if the packet transmission rate of the second interface is detected to be lower than the second value within a third preset time period, it indicates that the packet transmission rate has not reached the maximum transmission rate that the second interface can currently transmit. In reality, there is no traffic congestion problem at this time, and the funnel does not need to be used. Therefore, the first leak's threshold can be adjusted to the preset value at this time, making the funnel transparent, and the funnel can be activated again when traffic congestion occurs next time.
[0103] This concludes the discussion on... Figure 2 A flowchart describing the message transmission method applied to fiber-to-the-room (FTTR) networking.
[0104] In this embodiment, a funnel is deployed between the first and second interfaces of the network devices in the FTTR network. Packets are received through the first interface. If, based on the current leak threshold, it is identified that the received packet needs to be cached, the received packet is cached in the funnel's hopper. Then, according to the current leak threshold, the packet already cached in the hopper is forwarded through the second interface. This method ensures that when a traffic surge occurs, congested packets are first cached in the funnel's hopper instead of being directly discarded. Furthermore, the packets cached in the hopper are forwarded according to the packet transmission rate represented by the leak threshold. This allows for normal packet transmission even during traffic surges, mitigating the packet loss problem caused by mismatched network device port rates during sudden large traffic surges in related technologies.
[0105] The following is a detailed introduction to the uplink optical funnel, uplink Wi-Fi funnel, downlink optical funnel, and downlink Wi-Fi funnel.
[0106] Please refer to Figure 3 , Figure 3 This is a schematic diagram of a downlink optical funnel provided in an embodiment of this application.
[0107] In this embodiment, the downlink optical funnel refers to the funnel between the uplink optical port and the downlink optical port on the master device. After the uplink optical port receives a message, it is forwarded from the downlink optical port to the corresponding slave device via the downlink optical funnel. Each slave device can correspond to an independent downlink optical funnel on the master device.
[0108] It is easy to understand that the aforementioned downlink optical funnel is used to prevent the occurrence of situation A1) mentioned above, avoiding the situation where the central office OLT sends a sudden large amount of traffic to the master device, and the message transmission rate exceeds the current maximum transmission rate that the master device's downlink optical port can transmit, resulting in congestion and packet loss between the master device's uplink optical port and downlink optical port.
[0109] Please refer to Figure 4 , Figure 4 This is a schematic diagram of a downlink Wi-Fi funnel provided in an embodiment of this application.
[0110] In this embodiment, the downlink Wi-Fi funnel refers to the funnel between the optical port and the radio frequency (RF) port of the slave device. After receiving a message, the optical port forwards it from the RF port to the terminal connected to the RF port via the downlink Wi-Fi funnel. It is easy to understand that each RF port can correspond to an independent downlink Wi-Fi funnel on the slave device.
[0111] In this embodiment, since the main device may also have radio frequency (RF) capabilities, a downlink Wi-Fi funnel can be deployed on the main device. This downlink Wi-Fi funnel refers to the funnel between the uplink optical port and the RF port on the main device. After receiving a packet, the uplink optical port forwards it from the RF port to the terminal accessed by the RF port via this downlink Wi-Fi funnel. In this embodiment, each RF port can correspond to an independent downlink Wi-Fi funnel on the main device.
[0112] It is easy to understand that the aforementioned downlink Wi-Fi funnel is used to prevent situations A2) and A3) from occurring, avoiding congestion and packet loss between the optical port (optical port for slave devices, uplink optical port for master devices) and the radio frequency port when the message transmission rate exceeds the current maximum transmission rate of the radio frequency port of the network device (including slave devices and master devices with radio frequency functions).
[0113] According to Figure 3 , Figure 4 The downlink and downlink funnels, namely the downlink optical funnel and the downlink Wi-Fi funnel, are described in this embodiment when the master device receives a downlink message sent to the terminal:
[0114] If the target of the downlink message is the terminal on the slave device radio frequency, the message will pass through the master device downlink optical funnel, the master device downlink optical port, the slave device optical port, and the slave device downlink Wi-Fi funnel to reach the terminal;
[0115] If the target of the downlink message is a terminal on the master device's radio frequency, the message will reach the terminal through the master device's downlink Wi-Fi funnel.
[0116] Please refer to Figure 5 , Figure 5 This is a schematic diagram of an uplink optical funnel provided in an embodiment of this application.
[0117] In this embodiment, the uplink optical funnel refers to the funnel between the downlink optical port and the uplink optical port of the main equipment. After the downlink optical port of the main equipment receives the message, it is forwarded from the uplink optical port to the central office OLT through the uplink optical funnel.
[0118] It is easy to understand that the aforementioned uplink optical funnel is used to prevent the occurrence of situation B1) mentioned above. It avoids the situation where multiple slave devices generate large traffic at the same time, and the sum of their uplink message transmission rates exceeds the current maximum transmission rate that the master device's uplink optical port can transmit, resulting in congestion and packet loss between the master device's downlink optical port and uplink optical port.
[0119] Please refer to Figure 6 , Figure 6 This is a schematic diagram of an uplink Wi-Fi funnel provided in an embodiment of this application.
[0120] In this embodiment, the uplink Wi-Fi funnel refers to the funnel between the device's radio frequency port and optical port. After the device's radio frequency port receives the uplink message sent by the terminal, it is forwarded from the optical port to the downlink optical port of the corresponding master device through the uplink Wi-Fi funnel.
[0121] In this embodiment, since the main device may also have radio frequency capabilities, an uplink Wi-Fi funnel can also be deployed on the main device. The uplink Wi-Fi funnel deployed on the main device refers to the funnel between the main device's radio frequency port and the uplink optical port. After the main device's radio frequency port receives the uplink message sent by the terminal, it forwards it from the uplink port to the central office OLT through the uplink Wi-Fi funnel.
[0122] It is easy to understand that the aforementioned uplink Wi-Fi funnel is used to prevent situations B2) and B3) from occurring. It avoids the situation where the sum of the message transmission rates of uplink messages sent by terminals connected to the RF ports of network devices (including slave devices and master devices with RF capabilities) exceeds the current maximum transmission rate of the optical port of the network device (the optical port for slave devices and the uplink optical port for master devices), resulting in congestion and packet loss between the RF ports and optical ports of the network device.
[0123] According to Figure 5 , Figure 6 The uplink funnel, also known as the uplink optical funnel and the uplink Wi-Fi funnel, refers to the process where, in this embodiment, the RF port receives an uplink message sent from the terminal to the central office OLT.
[0124] If the message is sent by a terminal connected to the main device's RF port, the message will pass through the main device's uplink Wi-Fi funnel and finally be sent to the central office OLT by the main device's uplink optical port;
[0125] If the message is sent by a terminal connected to the device's RF port, the message will pass through the slave device's uplink Wi-Fi funnel, the slave device's optical port, the master device's downlink optical port, the master device's uplink optical funnel, and finally be sent to the central office OLT by the master device's uplink optical port.
[0126] This concludes the article. Figures 3 to 6 Descriptions of four types of funnels.
[0127] Figure 7 A schematic structural diagram of an electronic device according to an exemplary embodiment of this application is shown. Please refer to... Figure 7At the hardware level, the electronic device includes a processor, internal bus, network interface, memory, and non-volatile memory, and may also include other hardware required for business operations. The processor reads the corresponding computer program from the non-volatile memory into memory and then runs it, forming a terminal interaction device at the logical level. Of course, in addition to software implementation, this application does not exclude other implementation methods, such as logic devices or a combination of hardware and software, etc. That is to say, the execution subject of the following processing flow is not limited to individual logic units, but can also be hardware or logic devices.
[0128] Please refer to Figure 8 , Figure 8 This application discloses a message transmission device. The device is applied to network equipment in a Fiber to the Room (FTTR) network. The network equipment is equipped with a funnel containing two interfaces. The funnel includes at least an opening, a perforation, and a body; wherein the opening is one interface and the perforation is the other interface. The device may include a receiving unit 801, a buffer unit 802, and a forwarding unit 803.
[0129] Specifically, the device includes:
[0130] The receiving unit 801 is used to receive a message through the first interface of the network device. If the network device has deployed a first funnel including the first interface and the second interface, it identifies whether the received message needs to be buffered based on the current leakage threshold of the first leakage hole in the first funnel.
[0131] The buffer unit 802 is used to buffer the received message in the first funnel body in the first funnel if it is identified that the received message needs to be buffered based on the current funnel threshold of the first funnel.
[0132] The forwarding unit 803 is used to forward messages that have been cached in the first bucket body through the second interface according to the message transmission rate characterized by the current leak threshold of the first leak.
[0133] Optionally, if the network device is the master device and the first funnel is a downlink optical funnel, then the first opening of the first funnel is the uplink optical port of the master device, and the first hole of the first funnel is the downlink optical port of the master device.
[0134] If the network device is the master device, and the first funnel is a downlink Wi-Fi funnel, then the first opening of the first funnel is the uplink optical port of the master device, and the first hole of the first funnel is the radio frequency port of the master device.
[0135] If the network device is a slave device, and the first funnel is a downlink Wi-Fi funnel, then the first opening of the first funnel is the optical port of the slave device, and the first hole of the first funnel is the radio frequency port of the slave device;
[0136] And / or, if the network device is the master device and the first funnel is the uplink optical funnel, then the first opening of the first funnel is the downlink optical port of the master device, and the first hole of the first funnel is the uplink optical port of the master device.
[0137] If the network device is the master device, and the first funnel is an uplink Wi-Fi funnel, then the first opening of the first funnel is the radio frequency port of the master device, and the first hole of the first funnel is the uplink optical port of the master device.
[0138] If the network device is a slave device, and the first funnel is an uplink Wi-Fi funnel, then the first opening of the first funnel is the radio frequency port of the slave device, and the first hole of the first funnel is the optical port of the slave device;
[0139] And / or, the receiving unit 801 is specifically used for:
[0140] If the current threshold value of the first hole in the first funnel is a preset value, then it is determined that the received message does not need to be cached at present.
[0141] If the current threshold of the first leak in the first funnel is not a preset value, then it is determined that the received message needs to be cached.
[0142] And / or, the initial leakage threshold of the first leakage point is a preset value, the preset value being used to instruct the network device to prohibit the funnel in the first funnel from buffering packets received by the network device; the buffer unit 802 is further used for:
[0143] When it is detected that the number of packets lost continuously within a first preset time period reaches a preset number and the peak packet transmission rate of the second interface no longer increases within the second preset time period, the leakage threshold of the first leakage hole is adjusted to a second value. The second value is different from the preset value. The second value is determined by this network device based on the peak packet transmission rate of the second interface.
[0144] And / or, the receiving unit 801 is further configured to:
[0145] When the threshold value of the first leak is the second value, if the packet transmission rate of the second interface is detected to be lower than the second value within a third preset time period, the threshold value of the first leak is adjusted to the preset value.
[0146] This concludes the process. Figure 8 This describes a message transmission device used in fiber-to-the-room (FTTR) networking.
[0147] Correspondingly, in this embodiment, the present application also provides a computer-readable storage medium storing a plurality of computer instructions, which, when executed, can implement the method disclosed in the above examples of the present application.
[0148] For example, the aforementioned computer-readable storage medium can be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, etc. For instance, computer-readable storage media can be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drives (such as hard disk drives), solid-state drives, any type of storage disk (such as optical discs, DVDs, etc.), or similar storage media, or combinations thereof.
[0149] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which can take the form of a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email sending and receiving device, game console, tablet computer, wearable device, or any combination of these devices.
[0150] For ease of description, the above devices are described separately by function as various units. Of course, in implementing this application, the functions of each unit can be implemented in one or more software and / or hardware.
[0151] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0152] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0153] Furthermore, these computer program instructions can also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in the process. Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0154] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0155] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A message transmission method, characterized in that, This method is applied to network equipment in a fiber-to-the-room (FTTR) network, wherein the network equipment is equipped with a funnel containing two interfaces. The funnel includes at least: a funnel opening, a leak hole, and a funnel body; wherein the funnel opening is one interface, and the leak hole is the other interface; the method includes: If a packet is received through the first interface of this network device, and if this network device has deployed a first funnel including the first interface and a second interface, then based on the current leak threshold of the first leak in the first funnel, it is determined whether the received packet needs to be cached; wherein, the initial leak threshold of the first leak is a preset value, the preset value is used to instruct this network device to prohibit the first funnel body in the first funnel from caching the packet received by this network device; if the current leak threshold of the first leak in the first funnel is the preset value, it is determined that the received packet does not need to be cached; if the current leak threshold of the first leak in the first funnel is not the preset value, it is determined that the received packet needs to be cached. If, based on the current threshold of the first leak, it is identified that the received message needs to be cached, then the received message is cached in the first funnel body of the first funnel. According to the message transmission rate characterized by the current leak threshold of the first leak, the message already cached in the first bucket body is forwarded through the second interface; When it is detected that the number of packets lost continuously within a first preset time period reaches a preset number and the peak packet transmission rate of the second interface no longer increases within the second preset time period, the vulnerability threshold of the first vulnerability is adjusted to a second value. The second value is different from the preset value and is determined by the network device based on the peak packet transmission rate of the second interface.
2. The method according to claim 1, characterized in that, If the network device is the master device and the first funnel is a downlink optical funnel, then the first opening of the first funnel is the uplink optical port of the master device, and the first hole of the first funnel is the downlink optical port of the master device. If the network device is the master device, and the first funnel is a downlink Wi-Fi funnel, then the first opening of the first funnel is the uplink optical port of the master device, and the first hole of the first funnel is the radio frequency port of the master device. If the network device is a slave device, and the first funnel is a downlink Wi-Fi funnel, then the first opening of the first funnel is the optical port of the slave device, and the first hole of the first funnel is the radio frequency port of the slave device.
3. The method according to claim 1, characterized in that, If the network device is the master device and the first funnel is the uplink optical funnel, then the first opening of the first funnel is the downlink optical port of the master device, and the first hole of the first funnel is the uplink optical port of the master device. If the network device is the master device, and the first funnel is an uplink Wi-Fi funnel, then the first opening of the first funnel is the radio frequency port of the master device, and the first hole of the first funnel is the uplink optical port of the master device. If the network device is a slave device, and the first funnel is an uplink Wi-Fi funnel, then the first opening of the first funnel is the radio frequency port of the slave device, and the first hole of the first funnel is the optical port of the slave device.
4. The method according to claim 1, characterized in that, The method further includes: When the threshold value of the first leak is the second value, if the packet transmission rate of the second interface is detected to be lower than the second value within a third preset time period, the threshold value of the first leak is adjusted to the preset value.
5. A message transmission device, characterized in that, This device is used in network equipment in a Fiber to the Room (FTTR) network. The network equipment is equipped with a funnel containing two interfaces. The funnel includes at least: a funnel opening, a leak hole, and a funnel body; wherein the funnel opening is one interface, and the leak hole is the other interface. The device includes: A receiving unit is configured to receive packets through a first interface on the network device. If the network device has deployed a first funnel including the first interface and a second interface, it identifies whether the received packet needs to be cached based on the current leak threshold of the first leak hole in the first funnel. The initial leak threshold of the first leak hole is a preset value, which instructs the network device to prohibit the first funnel body from caching packets received by the network device. If the current leak threshold of the first leak hole in the first funnel is the preset value, it is determined that the received packet does not need to be cached. If the current leak threshold of the first leak hole in the first funnel is not the preset value, it is determined that the received packet needs to be cached. When it is detected that the packet is continuously lost for a preset number of times within a first preset time period and the peak packet transmission rate of the second interface no longer increases within the second preset time period, the leak threshold of the first leak hole is adjusted to a second value, which is different from the preset value and is determined by the network device based on the peak packet transmission rate of the second interface. A buffer unit is used to buffer the received message in the first funnel body of the first funnel if it is identified that the received message needs to be buffered based on the current funnel threshold of the first funnel. The forwarding unit is used to forward messages that have been cached in the first body through the second interface according to the message transmission rate characterized by the current leak threshold of the first leak.
6. The apparatus according to claim 5, characterized in that, If the network device is the master device and the first funnel is a downlink optical funnel, then the first opening of the first funnel is the uplink optical port of the master device, and the first hole of the first funnel is the downlink optical port of the master device. If the network device is the master device, and the first funnel is a downlink Wi-Fi funnel, then the first opening of the first funnel is the uplink optical port of the master device, and the first hole of the first funnel is the radio frequency port of the master device. If the network device is a slave device, and the first funnel is a downlink Wi-Fi funnel, then the first opening of the first funnel is the optical port of the slave device, and the first hole of the first funnel is the radio frequency port of the slave device; And / or, if the network device is the master device and the first funnel is the uplink optical funnel, then the first opening of the first funnel is the downlink optical port of the master device, and the first hole of the first funnel is the uplink optical port of the master device. If the network device is the master device, and the first funnel is an uplink Wi-Fi funnel, then the first opening of the first funnel is the radio frequency port of the master device, and the first hole of the first funnel is the uplink optical port of the master device. If the network device is a slave device, and the first funnel is an uplink Wi-Fi funnel, then the first opening of the first funnel is the radio frequency port of the slave device, and the first hole of the first funnel is the optical port of the slave device; And / or, the receiving unit is further configured to: When the threshold value of the first leak is the second value, if the packet transmission rate of the second interface is detected to be lower than the second value within a third preset time period, the threshold value of the first leak is adjusted to the preset value.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method as described in any one of claims 1 to 4.
8. A computer-readable storage medium, characterized in that, It stores a program that, when executed by a processor, implements the method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Message congestion control method and device
CN114189477A
Data control method and electronic equipment
CN117240802A
