A data transmission method and device based on FTTR
By monitoring network signals and device identification information, the Ethernet port mode of the FTTR gateway is automatically adjusted, which solves the data transmission problem of the FTTR gateway in different network environments, and realizes efficient and stable data transmission and bandwidth allocation, improving user experience.
Patent Information
- Application Number
- CN202510526173.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-25
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2045-04-25
AI Technical Summary
In an Ethernet network environment, the inability to adjust the working mode in time to cause a decrease in data transmission rate and an increase in packet loss rate, affecting the user's network experience.
By monitoring network signal characteristics, protocol type and identification information of connected devices, identifying the current network type and media type, automatically adjusting the working mode of the FTTR gateway Ethernet port, and dynamically allocating bandwidth resources according to the traffic requirements and priority of the downlink devices.
It realizes seamless docking between different network types and connection media, improves the stability and efficiency of data transmission, optimizes network performance, and provides users with a better network experience.
Smart Images

Figure CN120075657B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of FTTR, and in particular, to a data transmission method and device based on FTTR. Background Art
[0002] As a network access solution, FTTR can provide users with high-speed and stable network connections and has been widely used in various scenarios such as homes and enterprise offices.
[0003] However, when used in an existing Ethernet network environment, there is a need for re-wiring and it is impossible to directly expand using existing network devices. For example, in an enterprise office environment, different areas may adopt different network architectures, with some areas being fiber optic networks and some areas being traditional Ethernet. At the same time, when the network switches from Ethernet to a fiber optic network and the connection medium of the upstream device also changes from an Ethernet cable to a fiber optic cable, if the working mode of the FTTR gateway Ethernet port is not adjusted in a timely manner, problems such as a decrease in data transmission rate and an increase in packet loss rate may occur, seriously affecting the user's network experience.
[0004] How to solve the above technical problems is a technical challenge that those skilled in the art need to overcome. Summary of the Invention
[0005] In order to at least partially solve the above technical problems, this application provides a data transmission method and device based on FTTR.
[0006] In a first aspect, a data transmission method based on FTTR provided by this application adopts the following technical solution.
[0007] A data transmission method based on FTTR includes:
[0008] Monitoring at least one of network signal characteristics, protocol type, and identification information of connected devices to identify the current network type; the network type includes Ethernet and fiber optic network;
[0009] Identifying the connection medium types between the FTTR gateway and the upstream device and the downstream device; the upstream device is a device located upstream of the FTTR gateway network and providing network access for the FTTR gateway; the downstream device is a terminal device connected downstream of the FTTR gateway and receiving network services provided by the FTTR gateway;
[0010] Adjusting the working mode of the FTTR gateway Ethernet port according to the current network type and the connection medium type.
[0011] Optionally, monitoring network signal characteristics to identify the current network type includes: if the detected signal strength is within a preset Ethernet signal strength range, then determining that the network type is Ethernet;
[0012] The monitoring protocol type identifies the current network type, including: parsing the protocol header of the data packet, and if it contains fields and identifiers specific to the Ethernet protocol, it is determined to be Ethernet.
[0013] The identification information of the monitored connected device identifies the current network type, including: if the upstream device is an Ethernet switch and the device identification information conforms to the characteristics of the Ethernet device, the network type is determined to be Ethernet.
[0014] Optionally, identify the connection medium type between the FTTR gateway and the upstream device, including:
[0015] S301. Determine the interface form of the connection between the FTTR gateway and the upstream device; if it is an Ethernet interface, enter S302; if it is a fiber interface, enter S303;
[0016] S302. Query the device configuration information and if it shows an Ethernet cable connection, it is determined that the FTTR gateway and the upstream device are connected through an Ethernet cable.
[0017] S303. Query the device configuration information and if it shows a fiber connection, it is determined that the FTTR gateway and the upstream device are connected through a fiber.
[0018] Optionally, adjust the working mode of the Ethernet port of the FTTR gateway according to the current network type and the connection medium type, including:
[0019] When it is recognized that the current network type is Ethernet and the FTTR gateway is connected to the upstream device through an Ethernet cable: set the working mode of the target Ethernet port of the FTTR gateway to the upstream port; if the downstream device is connected to other Ethernet ports of the FTTR gateway through an Ethernet cable, maintain the other Ethernet ports in the normal working downstream port mode.
[0020] When it is recognized that the current network type is a fiber network and the FTTR gateway is connected to the upstream device through a fiber: if there is an Ethernet port set as the upstream port, restore the working mode of the Ethernet port set as the upstream port to the downstream port; enable the upstream fiber port of the FTTR gateway to dock with the fiber upstream device and receive data from the fiber network; for the downstream device, if it is connected to the FTTR gateway through an Ethernet cable, maintain the downstream port mode of the corresponding Ethernet port.
[0021] Optionally, the method further includes: if the upstream is a fiber network and there are several devices connected by Ethernet cables downstream, allocate the bandwidth resources of the Ethernet port according to the data traffic demand characteristics of the downstream device, and specifically include:
[0022] Obtain the device type, business demand urgency, and historical data flow of the downstream device, and record them as the downstream device information;
[0023] According to the collected downstream equipment information, the downstream equipment is prioritized: among them, it is divided into key business equipment, general business equipment and non-key business equipment;
[0024] Calculate the minimum bandwidth and ideal bandwidth required by high-priority devices based on their historical data traffic and the urgency of their business needs;
[0025] Allocate resources no less than the minimum bandwidth of the high-priority device from the available Ethernet port bandwidth resources;
[0026] After allocating bandwidth resources to high-priority devices, count the remaining Ethernet port bandwidth resources:
[0027] For medium-priority devices, the remaining Ethernet port bandwidth resources are allocated in a certain proportion based on their service needs and historical data traffic;
[0028] For low-priority devices, a certain basic bandwidth is allocated to them to maintain their basic network connection and functions if the remaining bandwidth resources are sufficient; if the remaining bandwidth is limited, their bandwidth usage is restricted to ensure the performance of high-priority devices.
[0029] Optionally, the method further includes:
[0030] Obtain traffic statistics information between the FTTR gateway and the downstream device connection port to obtain the amount of data received and sent by the downstream device per unit time;
[0031] Send a probe packet to the downstream device and record the time difference from sending to receiving the response packet to get the current network delay;
[0032] Count the total number of packets sent and the number of packets for which no response was received to derive the packet loss rate;
[0033] When at least one of the change rate of traffic statistics, network delay and packet loss rate exceeds a corresponding threshold, the bandwidth allocation is dynamically adjusted.
[0034] Optionally, when at least one change rate of traffic statistics, network delay, and packet loss rate exceeds a corresponding threshold, dynamically adjusting bandwidth allocation includes:
[0035] When abnormal fluctuations in traffic statistics, network latency, and packet loss rate come from high-priority devices and the currently allocated bandwidth cannot meet their increased network demands, the network usage activity of all low-priority devices is evaluated; the evaluation indicators of network usage activity include real-time data traffic, connection duration, and recent traffic peaks;
[0036] Sort the low-priority devices according to the pre-set bandwidth allocation priority order;
[0037] Starting from the low-activity low-priority device with the highest priority, calculate the amount of bandwidth resources that can be allocated; the amount of bandwidth resources that can be allocated is obtained based on the currently allocated bandwidth, real-time used bandwidth, and minimum guaranteed bandwidth of the device;
[0038] Allocate the allocated bandwidth resources to the high-priority devices until the network requirements of the high-priority devices are met or the available bandwidth of the low-priority devices is exhausted.
[0039] Optionally, the FTTR gateway is integrated with a power consumption monitoring module; the method further includes:
[0040] Collect the connection number information of the downstream devices in real time;
[0041] Analyze the traffic requirements of the downstream devices;
[0042] Judge the network stability and performance status according to the monitored network latency and packet loss rate;
[0043] According to the connection number, traffic requirements and network status of the downstream devices, formulate corresponding working modes and power adjustment strategies, specifically including: when the network traffic requirement is less than the first preset value, the connection number of the downstream devices is lower than the first number, and the network status is good, switch the working mode of the FTTR gateway to the energy-saving mode; in the energy-saving mode, reduce the working frequency and power of the gateway; when the network traffic requirement is greater than the first preset value and less than the second preset value, the connection number of the downstream devices is greater than the first number and less than the second number, and the network status is stable, keep the normal working mode of the FTTR gateway; when the network traffic requirement is greater than the second preset value, the connection of the downstream devices is greater than the second number or the network status is poor, switch the working mode of the FTTR gateway to the high-performance mode; in the high-performance mode, increase the working frequency and power of the gateway.
[0044] In a second aspect, a data transmission device based on FTTR provided by the present application adopts the following technical solution.
[0045] A data transmission device based on FTTR, comprising:
[0046] A first processing module, configured to: identify the current network type by monitoring at least one of network signal characteristics, protocol types, and identification information of connected devices; the network types include Ethernet and fiber optic network;
[0047] A second processing module, configured to: identify the connection medium types between the FTTR gateway and the upstream device and the downstream device; the upstream device is a device located in the upstream direction of the FTTR gateway network and providing network access for the FTTR gateway; the downstream device is a terminal device connected downstream of the FTTR gateway and receiving the network services provided by the FTTR gateway.
[0048] A third processing module, configured to: adjust the working mode of the Ethernet port of the FTTR gateway according to the current network type and the connection medium type. Description of the Drawings
[0049] Figure 1 is a flowchart of a data transmission method based on FTTR according to an embodiment of the present application;
[0050] Figure 2 is a system block diagram of a data transmission device based on FTTR according to an embodiment of the present application;
[0051] In the figure, 201 is the first processing module; 202 is the second processing module; 203 is the third processing module. Detailed Embodiments
[0052] The following Figure 1-2 and specific embodiments are used to further illustrate the present application:
[0053] An embodiment of the present application discloses a data transmission method based on FTTR, including the following steps:
[0054] Step 101, monitoring at least one of network signal characteristics, protocol types, and identification information of connected devices to identify the current network type; the network type includes Ethernet and fiber optic networks.
[0055] Step 102, identifying the connection medium types between the FTTR gateway and the upstream device and the downstream device; the upstream device is a device located in the upstream direction of the FTTR gateway network and providing network access for the FTTR gateway; the downstream device is a terminal device connected downstream of the FTTR gateway and receiving the network services provided by the FTTR gateway.
[0056] Step 103, adjusting the working mode of the Ethernet port of the FTTR gateway according to the current network type and the connection medium type.
[0057] Specifically, by monitoring network signal characteristics, protocol types, and the identification information of connected devices, identify whether the current network is a traditional Ethernet network or a fiber optic network, as well as the connection medium types between the FTTR gateway and the upstream device and the downstream device. For example, utilize the differences in signal strength and frequency to distinguish the signals transmitted by fiber optic and Ethernet cables, and determine the network type by parsing specific fields in the network protocol. In an actual scenario, when the FTTR gateway accesses a network, if the detected network signal frequency is 1000 Mbps or above and the signal strength is relatively stable, and at the same time the parsed network protocol is the Ethernet protocol (such as the relevant identifiers in the IPv4 or IPv6 protocol headers), then it is determined that the current network is a traditional Ethernet network; if the detected signal frequency is higher and conforms to the characteristics of fiber optic transmission, such as characteristics like optical signal strength and wavelength, and at the same time the corresponding fiber optic network protocol (such as specific fields in protocols like GPON, EPON, etc.) is parsed, then it is determined to be a fiber optic network. For the identification of the connection medium type, distinguish Ethernet cables and fiber optic cables by detecting the electrical characteristics at the interface. The Ethernet cable interface has specific voltage and current characteristics, while the fiber optic interface transmits through optical signals and has no electrical characteristics. According to the above identification results, automatically adjust the working mode of the Ethernet port of the FTTR gateway. When it is detected that the connection with the upstream device is through an Ethernet cable, switch the working mode of the target Ethernet port to the upstream port; when it is detected that the connection is through fiber optic, if the Ethernet port has been set as the upstream port before, then restore it to the downstream port and enable the upstream fiber optic port to receive data.
[0058] The following is an example for illustration.
[0059] In an office scenario, when the FTTR gateway initially accesses an Ethernet network, set a certain Ethernet port of the gateway as the upstream port, which is responsible for receiving the superior data from the Ethernet network. If the subsequent network is upgraded to a fiber optic network, the mode conversion control module will first restore the Ethernet port that was previously set as the upstream port to the downstream port, and at the same time enable the upstream fiber optic port to achieve seamless switching and ensure the continuity of data transmission.
[0060] When transmitting downlink data, select the appropriate interface for data forwarding according to whether the FTTR gateway is the master gateway or the slave gateway, and the connection method of the downstream device (optical fiber, Ethernet cable or WIFI). For example, after the master gateway receives the downlink data, if it is connected to the slave gateway through optical fiber, it will forward it through the downlink optical fiber port; if it is connected through an Ethernet cable, it will forward it through other Ethernet ports. When transmitting uplink data, reverse data routing is also performed according to the connection relationship. Suppose that in a large shopping mall, the FTTR master gateway receives downlink data from the operator. If the slave gateways in different areas of the mall are connected to the master gateway through optical fiber, the master gateway will forward the data to the slave gateway through the downlink optical fiber port; if some areas temporarily use Ethernet cables to connect the slave gateways due to decoration and other reasons, the master gateway will forward the data through the corresponding Ethernet port. For the downlink device, if it is a high-end server connected by optical fiber, the data transmission management module will give priority to the optical fiber interface for data forwarding to ensure high-speed and stable transmission; if it is an ordinary office computer connected through an Ethernet cable, the data will be forwarded through the Ethernet port. In the upstream direction, the slave gateway sends the collected user data to the master gateway through the corresponding interface according to the connection mode with the master gateway. The master gateway then transmits the data to the upper-level network according to the network topology and routing rules.
[0061] By adopting the above solution, the FTTR network is automatically adapted, thereby improving user experience.
[0062] As a specific implementation of a data transmission method based on FTTR, monitoring network signal characteristics to identify the current network type includes: if the signal strength is detected to be within a preset Ethernet signal strength interval, determining that the network type is Ethernet;
[0063] Monitoring the protocol type to identify the current network type includes: parsing the data packet protocol header, and if it contains Ethernet protocol-specific fields and identifiers, it is determined to be Ethernet;
[0064] The identification information of the connected device is monitored to identify the current network type, including: if the uplink device is an Ethernet switch and the device identification information is consistent with the Ethernet device characteristics, then the network type is determined to be Ethernet.
[0065] Specifically, there is usually a difference range in signal strength between Ethernet and fiber optic networks. When the detected signal strength is within the preset Ethernet signal strength range, based on the statistical law of signal strength and the physical characteristics of Ethernet, there is a high probability that the current network is determined to be Ethernet. Because during the transmission of Ethernet, its signal strength is comprehensively affected by factors such as cable material, transmission distance, and device power, forming a relatively stable strength range. In this way, a preliminary judgment of the network type can be quickly made. Different network types follow different protocol standards in the encapsulation and transmission of data packets. The Ethernet protocol has specific fields and identifiers, and these characteristics are the unique "fingerprints" of Ethernet data transmission. When parsing the protocol header of a data packet, if these specific fields and identifiers are found, the network type can be accurately determined to be Ethernet based on the normativity and uniqueness of the protocol. Different types of upstream devices correspond to different network types. As a typical device in an Ethernet network, an Ethernet switch has clear device identification information and characteristics. When the upstream device is an Ethernet switch and its identification information matches the Ethernet device characteristics, from the perspective of network topology and device correlation, the current network is very likely to be Ethernet. A single monitoring method may be interfered by various factors and result in misjudgment. Through multi-dimensional comprehensive judgment, the accuracy of network type identification is greatly improved.
[0066] As a specific implementation manner of a data transmission method based on FTTR, identifying the connection medium type between the FTTR gateway and the upstream device includes:
[0067] S301. Determine the interface form of the connection between the FTTR gateway and the upstream device; if it is an Ethernet interface, go to S302; if it is a fiber optic interface, go to S303;
[0068] S302. Query the device configuration information to show an Ethernet cable connection, then determine that the FTTR gateway and the upstream device are connected by an Ethernet cable;
[0069] S303. Query the device configuration information to show a fiber optic connection, then determine that the FTTR gateway and the upstream device are connected by a fiber optic cable.
[0070] As a specific implementation manner of a data transmission method based on FTTR, adjusting the working mode of the Ethernet port of the FTTR gateway according to the current network type and the connection medium type includes:
[0071] When it is identified that the current network type is Ethernet and the FTTR gateway and the upstream device are connected by an Ethernet cable: set the working mode of the target Ethernet port of the FTTR gateway to the upstream port; if the downstream device is connected to other Ethernet ports of the FTTR gateway by an Ethernet cable, maintain the other Ethernet ports in the normal working downstream port mode;
[0072] When it is recognized that the current network type is a fiber-optic network and the FTTR gateway is connected to the upstream device via a fiber optic cable: If there is an Ethernet port set as the upstream port, restore the working mode of the Ethernet port set as the upstream port to the downstream port; enable the upstream fiber optic port of the FTTR gateway to dock with the fiber optic upstream device and receive data from the fiber-optic network; for the downstream device, if it is connected to the FTTR gateway via an Ethernet cable, maintain the downstream port mode of the corresponding Ethernet port.
[0073] Specifically, when it is recognized that the current network type is Ethernet and the FTTR gateway is connected to the upstream device via an Ethernet cable, set the target Ethernet port as the upstream port, which is based on the logic of data flow in the Ethernet network architecture. As the upstream connection medium, data flows from the upstream network into the FTTR gateway. At this time, setting the corresponding Ethernet port as the upstream port enables the gateway to accurately receive signals from the Ethernet network and achieve smooth data access. When the downstream device is connected to other Ethernet ports of the FTTR gateway via an Ethernet cable, maintaining these Ethernet ports in the downstream port mode meets the requirement of the downstream device to obtain data from the gateway, ensuring that data can be stably transmitted from the gateway to the downstream device according to the established network topology and transmission rules, and guaranteeing the orderly bidirectional flow of data in the entire Ethernet network.
[0074] When it is recognized that the current network type is a fiber-optic network and the FTTR gateway is connected to the upstream device via a fiber optic cable, if there is an Ethernet port that was previously set as the upstream port, restore its working mode to the downstream port. This is because in a fiber-optic network environment, data is mainly transmitted through fiber optic interfaces at high speed and high efficiency. The Ethernet port that was set as the upstream port in the previous Ethernet environment is no longer suitable as an upstream data reception port in the fiber-optic network. Restoring its downstream port mode can avoid data transmission errors caused by port mode confusion. At the same time, enable the upstream fiber optic port of the FTTR gateway to dock with the fiber optic upstream device, giving full play to the high-speed and low-latency characteristics of the fiber-optic network, ensuring that the data transmitted from the fiber-optic network can be accurately received and processed by the gateway. For the downstream device, if it is connected to the FTTR gateway via an Ethernet cable, maintain the downstream port mode of the corresponding Ethernet port, maintaining the stability of data reception of the downstream device, allowing data to be transmitted from the fiber-optic network through the gateway conversion and then transmitted to the downstream Ethernet cable-connected device in a suitable manner, achieving seamless docking and efficient data transmission between different network types and connection media.
[0075] In summary, the method of flexibly adjusting the working mode of the FTTR gateway Ethernet port according to the network type and connection medium type optimizes the data processing and transmission capabilities of the gateway in different network environments, significantly improves the overall performance of the network, and provides users with a better network experience.
[0076] As one of the implementation manners of a data transmission method based on FTTR, the method further includes: when the upstream is a fiber optic network and there are several devices connected by Ethernet cables in the downstream, allocating bandwidth resources of Ethernet ports according to the data traffic demand characteristics of the downstream devices, which specifically includes:
[0077] Obtain the device type, the urgency of service requirements, and the historical data traffic of the downstream devices, and record them as downstream device information;
[0078] According to the collected downstream device information, perform priority classification on the downstream devices: among them, they are classified into critical service devices, general service devices, and non-critical service devices;
[0079] According to the historical data traffic and the urgency of service requirements of high-priority devices, calculate the minimum bandwidth and ideal bandwidth required by them;
[0080] From the available bandwidth resources of Ethernet ports, allocate resources not less than the minimum bandwidth for high-priority devices;
[0081] After allocating bandwidth resources for high-priority devices, count the remaining bandwidth resources of Ethernet ports:
[0082] For medium-priority devices, allocate the remaining bandwidth resources of Ethernet ports according to a certain ratio according to their service requirements and historical data traffic;
[0083] For low-priority devices, allocate a certain basic bandwidth to maintain their basic network connection and functions when the remaining bandwidth resources are sufficient; if the remaining bandwidth is limited, limit their bandwidth usage to ensure the performance of high-priority devices.
[0084] Specifically, the device type, business demand urgency and historical data traffic of the downstream device are obtained. This information reflects the network usage characteristics of each device. Different types of devices, such as smart TVs, computers, surveillance cameras, etc., have obvious differences in data traffic requirements; the business demand urgency reflects the timeliness requirements of the device business; and the historical data traffic can predict the future data usage trend of the device. Priority is divided based on the information of the downstream devices, and the devices are divided into key business devices, general business devices and non-key business devices. Key business devices may involve the core business operations of the enterprise and have extremely high requirements for network stability and bandwidth; general business devices undertake routine functions such as daily office and entertainment; non-key business devices, such as some auxiliary smart home devices, have a relatively low degree of dependence on the network. The minimum bandwidth and ideal bandwidth required by high-priority devices are calculated based on their historical data traffic and business demand urgency, which can ensure that these devices can operate normally under different circumstances. Resources that are not less than their minimum bandwidth are allocated to high-priority devices to avoid business interruption or severe performance degradation due to insufficient bandwidth. After allocating bandwidth to high-priority devices, the remaining resources are counted, and then allocated proportionally to medium-priority devices according to business needs and historical data traffic. For low-priority devices, basic bandwidth is allocated to maintain their basic functions when the remaining bandwidth is sufficient, which can meet some basic needs of users; and when the remaining bandwidth is limited, their use is restricted to ensure the performance of high-priority devices, thereby improving the overall utilization efficiency of network resources and the reliability of network services, and providing users with a more stable and efficient network experience.
[0085] As one implementation of a data transmission method based on FTTR, the method further includes:
[0086] Obtain traffic statistics information between the FTTR gateway and the downstream device connection port to obtain the amount of data received and sent by the downstream device per unit time;
[0087] Send a probe packet to the downstream device and record the time difference from sending to receiving the response packet to get the current network delay;
[0088] Count the total number of packets sent and the number of packets for which no response was received to derive the packet loss rate;
[0089] When at least one of the change rate of traffic statistics, network delay and packet loss rate exceeds a corresponding threshold, the bandwidth allocation is dynamically adjusted.
[0090] Specifically, the amount of data received and sent by the downstream device per unit time is obtained to reflect the network activity intensity of the device. If the traffic statistics show that the amount of data of a downstream device rises sharply in a short period of time, it may mean that the device is performing tasks with large bandwidth requirements, such as downloading large data and live streaming of high-definition videos. Due to limited network resources, this is very likely to affect the normal operation of other devices. By monitoring the traffic change rate, when it exceeds the preset threshold, this abnormal traffic increase can be discovered in time. For example, in an enterprise office scenario, if a server suddenly performs large-scale data backup, resulting in a surge in network traffic, the abnormality can be determined based on the traffic change rate, and the bandwidth allocation can be adjusted in time to ensure smooth network operation of other office devices. Sending a detection data packet to the downstream device and recording the round-trip time difference to obtain the network delay is a key indicator for measuring the real-time performance of the network. Excessive network delay will seriously affect real-time services, such as online games and video conferencing. When the network delay change rate exceeds the threshold, it indicates that the network condition has deteriorated, which may be caused by network congestion, link failure, etc. For example, during a video conference, if the network delay suddenly increases significantly, the participants will clearly feel the audio and video stuck. At this time, based on the network delay change rate exceeding the threshold, the system can quickly and dynamically adjust the bandwidth allocation, give priority to the bandwidth required for the video conference, reduce delays, and improve user experience. The total number of packets sent and the number of packets that have not received responses are counted to get the packet loss rate. A high packet loss rate will lead to incomplete data transmission and affect the normal operation of the business. When the packet loss rate change rate exceeds the threshold, it means that the stability of network transmission is seriously challenged. For example, during file transmission, if the packet loss rate suddenly increases, part of the file may be lost or damaged and cannot be used normally. Based on the monitoring of the packet loss rate change rate, when it exceeds the threshold, the bandwidth allocation is dynamically adjusted. You can try to reduce the packet loss rate by optimizing the data transmission path, adjusting the device transmission parameters, etc., to ensure reliable data transmission.
[0091] As one implementation of a data transmission method based on FTTR, when at least one change rate of traffic statistics, network delay and packet loss rate exceeds a corresponding threshold, bandwidth allocation is dynamically adjusted, including:
[0092] When abnormal fluctuations in traffic statistics, network latency, and packet loss rate come from high-priority devices and the currently allocated bandwidth cannot meet their increased network demands, the network usage activity of all low-priority devices is evaluated; the evaluation indicators of network usage activity include real-time data traffic, connection duration, and recent traffic peaks;
[0093] Sort low-priority devices according to the pre-set bandwidth allocation priority order;
[0094] Starting from the device with the highest priority and low activity, the amount of bandwidth resources that can be allocated is calculated. The amount of bandwidth resources that can be allocated is based on the bandwidth currently allocated to the device, the real-time bandwidth used, and the minimum guaranteed bandwidth.
[0095] The allocated bandwidth resources are allocated to high-priority devices until the network requirements of the high-priority devices are met or the available bandwidth of the low-priority devices is exhausted.
[0096] Specifically, if the abnormal fluctuation originates from a high-priority device and the current bandwidth cannot meet its needs, the current network usage status of the low-priority device can be understood through evaluation indicators such as real-time data traffic, connection time, and recent traffic peak. For example, real-time data traffic can reflect the degree of network resource occupation of the device at this moment. If the real-time data traffic of a low-priority device is extremely low, it indicates that its current demand for network bandwidth is not large; the connection time can determine the continuity of the device's use of the network. A device that is connected for a long time but has low traffic indicates that its network use is relatively stable but not active; the recent traffic peak can know the maximum bandwidth demand of the device in the past period of time. Low-priority devices are sorted according to the pre-set bandwidth allocation priority order. Different low-priority devices have different importance and business needs in the network. Sorting them in the established order avoids the confusion caused by blind bandwidth allocation. For example, for some low-priority devices that are only used for occasional information queries, it can be given priority to reduce their bandwidth allocation when allocating bandwidth. For some devices that have low priority but bear basic business support, it may be necessary to allocate them on the premise of ensuring their minimum network needs. The amount of bandwidth resources that can be allocated is calculated starting from the lowest-priority device with the highest priority and low activity. The amount is calculated based on the device's current allocated bandwidth, real-time bandwidth usage, and minimum guaranteed bandwidth. This ensures that when allocating bandwidth, the device's currently idle bandwidth resources are fully utilized without affecting its basic business operations. For example, a low-priority device currently has an allocated bandwidth of 100Mbps, real-time bandwidth usage is only 10Mbps, and its minimum guaranteed bandwidth is 5Mbps. Then the amount of bandwidth resources that can be allocated is 100 -10 - 5 = 85Mbps. Under the premise of not affecting the basic functions of the low-priority device, sufficient bandwidth resources are provided to the high-priority device as much as possible. The allocated bandwidth resources are allocated to the high-priority device until its network needs are met or the low-priority device's allocated bandwidth is exhausted, which effectively guarantees the performance of the high-priority device.
[0097] As one implementation of a data transmission method based on FTTR, a power consumption monitoring module is integrated into the FTTR gateway; the method further includes:
[0098] Collect the connection quantity information of downstream devices in real time;
[0099] Analyze the traffic requirements of downstream devices;
[0100] Determine the stability and performance of the network based on the monitored network delay and packet loss rate;
[0101] According to the number of downstream device connections, traffic demand and network status, formulate corresponding working modes and power adjustment strategies, specifically including: when the network traffic demand is less than a first preset value and the number of downstream device connections is less than the first number and the network status is good, switch the working mode of the FTTR gateway to the energy-saving mode; in the energy-saving mode, reduce the working frequency and power of the gateway; when the network traffic demand is greater than the first preset value and less than the second preset value, the number of downstream device connections is greater than the first number and less than the second number, and the network status is stable, maintain the normal working mode of the FTTR gateway; when the network traffic demand is greater than the second preset value, the number of downstream device connections is greater than the second number or the network status is not good, switch the working mode of the FTTR gateway to the high-performance mode; in the high-performance mode, increase the working frequency and power of the gateway.
[0102] Specifically, when the network traffic demand is less than the first preset value, the number of downstream device connections is less than the first number, and the network status is good, it means that the current network is in a light load state. At this time, the FTTR gateway is switched to energy-saving mode to reduce the working frequency and power. In this case, the gateway does not need high-power operation to process a large amount of data. Reducing power can effectively reduce energy consumption and avoid unnecessary waste of electricity. For example, in the late night period, most downstream devices are idle and the network traffic is extremely low. Switching the gateway to energy-saving mode can significantly reduce energy consumption, which can save a lot of electricity costs in the long run. When the network traffic demand is moderate, the number of downstream device connections is normal, and the network status is stable, maintaining the normal working mode can ensure that the gateway operates in a stable and efficient state to meet the daily use needs of the network. When the network traffic demand is greater than the second preset value, the number of downstream device connections is greater than the second number, or the network status is not good, the gateway is switched to high-performance mode to increase the working frequency and power. In this high-load or unstable network environment, the gateway needs to have stronger processing capabilities to cope with large amounts of data transmission and solve network problems. For example, during peak office hours, a large number of employees use the network for data transmission and business operations at the same time, and network traffic increases dramatically. At this time, the high-performance mode can ensure the smoothness and stability of the network, avoid network delays and packet loss caused by insufficient gateway processing capabilities, and ensure the normal development of business.
[0103] The present application also provides a data transmission device based on FTTR, comprising:
[0104] The first processing module 201 is configured to: identify the current network type by monitoring at least one of network signal characteristics, protocol types, and identification information of connected devices; the network types include Ethernet and fiber optic network.
[0105] The second processing module 202 is configured to: identify the connection medium types between the FTTR gateway and the upstream device and the downstream device; the upstream device is a device located in the upstream direction of the FTTR gateway network and providing network access for the FTTR gateway; the downstream device is a terminal device connected downstream of the FTTR gateway and receiving network services provided by the FTTR gateway.
[0106] The third processing module 203 is configured to: adjust the working mode of the Ethernet port of the FTTR gateway according to the current network type and the connection medium type.
[0107] It should be noted that: the above embodiments are only used to illustrate the present application and do not limit the technical solutions described in the present application. Although this specification has described the present application in detail with reference to the above embodiments, those of ordinary skill in the art should understand that those skilled in the technical field can still modify the present application or make equivalent substitutions, and all technical solutions and their improvements that do not depart from the spirit and scope of the present application should be covered within the scope of the claims of the present application.
Claims
1. A data transmission method based on FTTR, characterized in that, including: identifying the current network type based on at least one of the monitoring network signal characteristics, protocol type, and identification information of the connected device; the network type includes Ethernet and fiber optic network; identifying the connection medium type between the FTTR gateway and the upstream device and the downstream device; the upstream device is the device located in the upstream direction of the FTTR gateway network and providing network access for the FTTR gateway; the downstream device is the terminal device connected downstream of the FTTR gateway and receiving the network service provided by the FTTR gateway; adjusting the working mode of the Ethernet port of the FTTR gateway according to the current network type and the connection medium type; the method further includes: when the upstream is a fiber optic network and there are several devices connected by Ethernet cables downstream, allocating the bandwidth resources of the Ethernet port according to the data traffic demand characteristics of the downstream devices, which specifically includes: obtaining the device type, urgency of service requirements, and historical data traffic of the downstream device, denoted as downstream device information; classifying the downstream devices according to the collected downstream device information: among them, they are classified into critical service devices, general service devices, and non-critical service devices; calculating the minimum bandwidth and ideal bandwidth required by the high-priority devices according to the historical data traffic and urgency of service requirements of the high-priority devices; allocating resources not less than the minimum bandwidth for the high-priority devices from the available Ethernet port bandwidth resources; after allocating bandwidth resources for the high-priority devices, counting the remaining Ethernet port bandwidth resources: for the medium-priority devices, allocating the remaining Ethernet port bandwidth resources proportionally according to their service requirements and historical data traffic; for the low-priority devices, allocating basic bandwidth to maintain their basic network connection and functions when the remaining bandwidth resources are sufficient; if the remaining bandwidth is limited, restricting their bandwidth usage to ensure the performance of the high-priority devices; the method further includes: obtaining the traffic statistical information of the connection port between the FTTR gateway and the downstream device to obtain the data volume received and sent by the downstream device per unit time; sending a probe data packet to the downstream device and recording the time difference from sending to receiving the response data packet to obtain the current network latency; counting the total number of data packets sent and the number of data packets not receiving responses to obtain the packet loss rate; when at least one change rate of the traffic statistical information, network latency, and packet loss rate exceeds the corresponding threshold, dynamically adjusting the bandwidth allocation; when at least one change rate of the traffic statistical information, network latency, and packet loss rate exceeds the corresponding threshold, dynamically adjusting the bandwidth allocation, including: when the abnormal fluctuations of the traffic statistical information, network latency, and packet loss rate come from high-priority devices and the currently allocated bandwidth cannot meet their increased network requirements, evaluating the network usage activity of all low-priority devices; the evaluation indicators of network usage activity include real-time data traffic, connection duration, and recent traffic peak; sorting the low-priority devices according to the pre-set bandwidth allocation priority order; Starting from the device with the highest priority and low activity, the amount of bandwidth resources that can be allocated is calculated. The amount of bandwidth resources that can be allocated is based on the bandwidth currently allocated to the device, the real-time bandwidth used, and the minimum guaranteed bandwidth. Allocate the allocated bandwidth resources to high-priority devices until the network demand of the high-priority devices is met or the available bandwidth of the low-priority devices is exhausted; The FTTR gateway is integrated with a power consumption monitoring module; the method further comprises: Collect the connection quantity information of downstream devices in real time; Analyze the traffic requirements of downstream devices; Determine the stability and performance of the network based on the monitored network delay and packet loss rate; According to the number of downstream device connections, traffic demand and network status, formulate corresponding working modes and power adjustment strategies, specifically including: when the network traffic demand is less than a first preset value and the number of downstream device connections is less than the first number and the network status is good, switch the working mode of the FTTR gateway to the energy-saving mode; in the energy-saving mode, reduce the working frequency and power of the gateway; when the network traffic demand is greater than the first preset value and less than the second preset value, the number of downstream device connections is greater than the first number and less than the second number, and the network status is stable, maintain the normal working mode of the FTTR gateway; when the network traffic demand is greater than the second preset value, the number of downstream device connections is greater than the second number or the network status is not good, switch the working mode of the FTTR gateway to the high-performance mode; in the high-performance mode, increase the working frequency and power of the gateway.
2. The FTTR-based data transmission method according to claim 1, characterized in that: Monitoring network signal characteristics to identify the current network type includes: if the signal strength is detected to be within a preset Ethernet signal strength range, determining that the network type is Ethernet; Monitoring the protocol type to identify the current network type includes: parsing the data packet protocol header, and if it contains Ethernet protocol-specific fields and identifiers, it is determined to be Ethernet; The identification information of the connected device is monitored to identify the current network type, including: if the uplink device is an Ethernet switch and the device identification information is consistent with the Ethernet device characteristics, then the network type is determined to be Ethernet.
3. The data transmission method based on FTTR according to claim 2, wherein Identify the connection media type between the FTTR gateway and the uplink device, including: S301, determine the interface form of the FTTR gateway connected to the uplink device; if it is an Ethernet interface, proceed to S302; if it is a fiber optic interface, proceed to S303; S302, querying the device configuration information shows that it is connected via an Ethernet cable, then determining that the FTTR gateway and the uplink device are connected via an Ethernet cable; S303: If the query device configuration information shows that it is optical fiber connection, it is determined that the FTTR gateway and the uplink device are connected via optical fiber.
4. The data transmission method based on FTTR according to claim 3, wherein Adjust the working mode of the FTTR gateway Ethernet port according to the current network type and the connection medium type, including: When it is recognized that the current network type is Ethernet and the FTTR gateway is connected to the upstream device through an Ethernet cable: set the working mode of the target Ethernet port of the FTTR gateway to the upstream port; if the downstream device is connected to other Ethernet ports of the FTTR gateway through an Ethernet cable, maintain the other Ethernet ports in the normal working downstream port mode; When it is recognized that the current network type is a fiber network and the FTTR gateway is connected to the upstream device through a fiber connection: if there is an Ethernet port set as the upstream port, restore the working mode of the set Ethernet port to the downstream port; enable the upstream fiber port of the FTTR gateway to connect to the fiber upstream device and receive data from the fiber network; for the downstream device, if it is connected to the FTTR gateway through an Ethernet cable, maintain the downstream port mode of the corresponding Ethernet port.
5. A data transmission device based on FTTR, which is used to implement the method according to any one of claims 1-4, and is characterized in that Including: The first processing module is used to: monitor at least one of the network signal characteristics, protocol type, and identification information of the connected device to identify the current network type; the network type includes Ethernet and fiber network; The second processing module is used to: identify the connection medium type between the FTTR gateway and the upstream device and the downstream device; the upstream device is the device located in the upstream direction of the FTTR gateway network and providing network access for the FTTR gateway; the downstream device is the terminal device connected downstream of the FTTR gateway and receiving the network service provided by the FTTR gateway; The third processing module is used to: adjust the working mode of the Ethernet port of the FTTR gateway according to the current network type and the connection medium type.
Citation Information
Patent Citations
Bandwidth resource allocation method and device, terminal, optical network unit and storage medium
CN117319843A
Intelligent adaptive optical communication scheduling system
CN117956328A