Data transmission method and device based on FTTR

By monitoring network signals and device identification information, identifying network types and connection media types, and adjusting the working mode of the Ethernet port of the FTTR gateway, the problem of FTTR expansion and adaptation in the Ethernet network environment is solved, and efficient data transmission and stable network experience are achieved.

CN120075657AActive Publication Date: 2025-05-30YIBIN HUAXUN OPTICAL COMM CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510526173.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-25
Publication Date
2025-05-30
Estimated Expiration
2045-04-25

AI Technical Summary

Technical Problem

When using FTTR in an Ethernet network environment, it is necessary to re-wire and cannot directly use existing network equipment for expansion, resulting in a decrease in data transmission rate and an increase in packet loss rate, affecting the user's network experience.

Method used

By monitoring network signal characteristics, protocol type and identification information of connected devices, identify the current network type and the type of connection medium between the FTTR gateway and the uplink device and the downlink device, and adjust the working mode of the FTTR gateway Ethernet port to adapt to different network environments.

Benefits of technology

It realizes automatic adaptation of FTTR networks in different network environments, improves data transmission efficiency, reduces packet loss rate and delay, and improves users' network experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120075657A_ABST
    Figure CN120075657A_ABST
Patent Text Reader

Abstract

The invention relates to an FTTR-based data transmission method and device, and relates to the technical field of FTTRs, and the method comprises the steps: monitoring at least one of a network signal feature, a protocol type and identification information of a connection device, and recognizing a current network type; the network type comprises an Ethernet network and an optical fiber network; identifying the type of a connection medium between the FTTR gateway and the uplink device and the type of a connection medium between the FTTR gateway and the downlink device; the uplink device is a device which is located in the upstream direction of the FTTR gateway network and provides network access for the FTTR gateway; the downlink equipment is terminal equipment which is connected to the downstream of the FTTR gateway and receives the network service provided by the FTTR gateway; and adjusting the working mode of the FTTR gateway Ethernet port according to the current network type and the connection medium type.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of FTTR, and particularly 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 fails to be 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] 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: 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; Identifying the connection medium types between the FTTR gateway and the upstream device and the downstream device; the upstream device is located in the upstream direction of the FTTR gateway network and provides 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; Adjusting the working mode of the FTTR gateway Ethernet port according to the current network type and the connection medium type.

[0008] 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; 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; The identification information of the monitoring 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.

[0009] Optionally, identify the connection medium type between the FTTR gateway and the upstream device, including: 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; 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 by an Ethernet cable; S303. Query the device configuration information and if it shows a fiber optic connection, it is determined that the FTTR gateway and the upstream device are connected by a fiber optic cable.

[0010] 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: When it is recognized that the current network type is Ethernet and the FTTR gateway is connected to the upstream device 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 normal working downstream port mode of the other Ethernet ports; When it is recognized that the current network type is a fiber optic network and the FTTR gateway is connected to the upstream device by 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 by an Ethernet cable, maintain the downstream port mode of the corresponding Ethernet port.

[0011] Optionally, the method further includes: if the upstream is a fiber optic network and there are several devices connected by Ethernet cables downstream, allocate the bandwidth resources of the Ethernet ports according to the data traffic demand characteristics of the downstream devices, and specifically include: Obtain the device type, business requirement urgency degree and historical data traffic of the downstream device, and record it as the downstream device information; According to the collected downstream device information, divide the downstream devices into priorities: among them, they are divided into critical business devices, general business devices and non-critical business devices; 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; Allocate resources no less than the minimum bandwidth of the high-priority device from the available Ethernet port bandwidth resources; After allocating bandwidth resources to high-priority devices, count the remaining Ethernet port bandwidth resources: 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; 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.

[0012] Optionally, the method further includes: 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; 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; Count the total number of packets sent and the number of packets for which no response was received to derive the packet loss rate; 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.

[0013] 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: 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; Sort 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 obtained based on the bandwidth currently allocated to the device, the real-time bandwidth used, and the minimum guaranteed bandwidth; 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.

[0014] Optionally, 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 mode and power adjustment strategy, specifically including: when the network traffic demand is less than the 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.

[0015] In the second aspect, the present application provides a FTTR-based data transmission device that adopts the following technical solution.

[0016] A data transmission device based on FTTR, comprising: The first processing module is used to: monitor at least one of the network signal characteristics, the protocol type and the identification information of the connection device to identify the current network type; the network type includes Ethernet and optical fiber network; The second processing module is used to: identify the type of connection medium 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 provides network access for the FTTR gateway; the downstream device is a terminal device connected to the downstream of the FTTR gateway and receives 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. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 is a flow chart of a data transmission method based on FTTR in an embodiment of the present application; Figure 2 This is a system block diagram of a data transmission device based on FTTR in an embodiment of the present application; In the figure, 201 is a first processing module; 202 is a second processing module; 203 is a third processing module. DETAILED DESCRIPTION

[0018] The following is combined withFigure 1-2 The following is a further description of the present application with reference to specific embodiments: An embodiment of the present application discloses a data transmission method based on FTTR, including the following steps: Step 101, 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.

[0019] Step 102, identify the connection medium types between the FTTR gateway and the upstream device and the downstream device; the upstream device is located in the upstream direction of the FTTR gateway network and provides network access for the FTTR gateway; the downstream device is a terminal device connected downstream of the FTTR gateway and receives network services provided by the FTTR gateway.

[0020] Step 103, adjust the working mode of the Ethernet port of the FTTR gateway according to the current network type and the connection medium type.

[0021] Specifically, by monitoring network signal characteristics, protocol types, and identification information of connected devices, identify whether the current network is a traditional Ethernet or a fiber optic network, and the connection medium types between the FTTR gateway and the upstream device and the downstream device. For example, use the differences in signal strength and frequency to distinguish signals transmitted by fiber optic and Ethernet cables, and judge 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 an Ethernet protocol (such as relevant identifiers in the IPv4 or IPv6 protocol header), it is determined that the current network is a traditional Ethernet; if the detected signal frequency is higher and conforms to the fiber optic transmission characteristics, such as optical signal strength and wavelength characteristics, and at the same time the corresponding fiber optic network protocol (such as specific fields in GPON, EPON, etc. protocols) is parsed, it is determined to be a fiber optic network. For the identification of the connection medium type, distinguish Ethernet cables and fiber optics by detecting the electrical characteristics at the interface. Ethernet cable interfaces have specific voltage and current characteristics, while fiber optic interfaces transmit through optical signals and have 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, restore it to the downstream port and enable the upstream fiber optic port to receive data.

[0022] The following is an example for illustration.

[0023] In an office scenario, the FTTR gateway is initially connected to the Ethernet network, and one of the Ethernet ports of the gateway is set as the uplink port, which is responsible for receiving the upper-level data from the Ethernet network. If the network is subsequently upgraded to a fiber optic network, the mode conversion control module will first restore the Ethernet port previously set as the uplink port to the downlink port, and enable the uplink fiber optic port at the same time to achieve seamless switching and ensure the continuity of data transmission. 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.

[0024] By adopting the above solution, the FTTR network is automatically adapted, thereby improving user experience.

[0025] 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; 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; Monitoring the identification information of the connected device to identify the current network type includes: if the uplink device is an Ethernet switch and the device identification information is consistent with the Ethernet device characteristics, then determining that the network type is Ethernet.

[0026] 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 features 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 standardization 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.

[0027] As a specific implementation of a data transmission method based on FTTR, identifying the connection medium type between the FTTR gateway and the upstream device includes: S301. Determine the interface form of the connection between the FTTR gateway and the upstream device; if it is an Ethernet interface, proceed to S302; if it is a fiber optic interface, proceed to S303; S302. Query the device configuration information to show an Ethernet cable connection, then determine that the FTTR gateway and the upstream device are connected through an Ethernet cable; S303. Query the device configuration information to show a fiber optic connection, then determine that the FTTR gateway and the upstream device are connected through a fiber optic cable.

[0028] As a specific implementation 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: When it is identified that the current network type is Ethernet and the FTTR gateway and the upstream device are connected 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-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 uplink port, restore the working mode of the Ethernet port set as the uplink port to the downlink port; enable the uplink fiber optic port of the FTTR gateway to interface 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 downlink port mode of the corresponding Ethernet port.

[0029] 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 uplink port, which is based on the logic of data flow in the Ethernet network architecture. With the Ethernet cable as the uplink connection medium, data flows from the upstream network into the FTTR gateway. At this time, setting the corresponding Ethernet port as the uplink 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 downlink 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, guaranteeing the orderly two-way flow of data in the entire Ethernet network.

[0030] 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 uplink port, restore its working mode to the downlink port. This is because in a fiber-optic network environment, data is mainly transmitted at high speed and efficiently through fiber optic interfaces. The Ethernet port that was set as the uplink port in the previous Ethernet environment is no longer suitable as an uplink data reception port in the fiber-optic network. Restoring its downlink port mode can avoid data transmission errors caused by port mode confusion. At the same time, enable the uplink fiber optic port of the FTTR gateway to interface with the fiber optic upstream device, giving full play to the high-speed and low-latency characteristics of the fiber-optic network, ensuring that 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 downlink port mode of the corresponding Ethernet port, maintaining the stability of data reception for 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.

[0031] 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 improving the overall performance of the network and providing users with a better network experience.

[0032] As one of the implementation manners of a data transmission method based on FTTR, the method further includes: when the uplink is a fiber optic network and there are several devices connected by an Ethernet cable in the downlink, allocating the bandwidth resources of the Ethernet ports according to the data traffic demand characteristics of the downlink devices, which specifically includes: Obtain the device type, the urgency degree of service requirements, and the historical data traffic of the downlink devices, and record them as the downlink device information; According to the collected downlink device information, divide the downlink devices into different priorities: among them, they are divided into critical service devices, general service devices, and non-critical service devices; According to the historical data traffic and the urgency degree of service requirements of the high-priority devices, calculate the minimum bandwidth and the ideal bandwidth they need; Allocate resources not less than the minimum bandwidth for the high-priority devices from the available Ethernet port bandwidth resources; After allocating the bandwidth resources for the high-priority devices, count the remaining Ethernet port bandwidth resources: For the medium-priority devices, allocate the remaining Ethernet port bandwidth resources according to a certain proportion according to their service requirements and historical data traffic; For the 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 the high-priority devices.

[0033] 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.

[0034] As one implementation of a data transmission method based on FTTR, the method further includes: 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; 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; Count the total number of packets sent and the number of packets for which no response was received to derive the packet loss rate; 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.

[0035] 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.

[0036] 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: 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; Sort 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 obtained based on the bandwidth currently allocated to the device, the real-time bandwidth used, and the minimum guaranteed bandwidth; 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.

[0037] 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.

[0038] 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: 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 mode and power adjustment strategy, specifically including: when the network traffic demand is less than the 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.

[0039] 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.

[0040] The present application also provides a data transmission device based on FTTR, comprising: The first processing module 201 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 optical fiber network; 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 the network service provided by the FTTR gateway. 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.

[0041] 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 replacements, 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: include: Monitor at least one of network signal characteristics, protocol type, and identification information of a connected device to identify a current network type; The network types include Ethernet and fiber optic network; Identify the type of connection medium between the FTTR gateway and the upstream device and downstream device; the upstream device is located in the upstream direction of the FTTR gateway network and provides network access for the FTTR gateway; the downstream device is the terminal device connected downstream of the FTTR gateway and receives the network service provided by the FTTR gateway; The working mode of the Ethernet port of the FTTR gateway is adjusted according to the current network type and the connection medium type.

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; Monitoring the identification information of the connected device to identify the current network type includes: if the uplink device is an Ethernet switch and the device identification information is consistent with the Ethernet device characteristics, then determining that the network type is Ethernet.

3. The FTTR-based data transmission method according to claim 2, characterized in that: 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 FTTR-based data transmission method according to claim 3, characterized in that: Adjust the working mode of the FTTR gateway Ethernet port according to the current network type and the connection medium type, including: When the current network type is identified as Ethernet, and the FTTR gateway is connected to the uplink device via an Ethernet cable: the target Ethernet port of the FTTR gateway is set to work as an uplink port; if the downlink device is connected to other Ethernet ports of the FTTR gateway via an Ethernet cable, the other Ethernet ports are maintained in a downlink port mode for normal operation; When the current network type is identified as a fiber optic network, and the FTTR gateway is connected to the upstream device via fiber optic: if there is an Ethernet port set as an upstream port, the working mode of the Ethernet port set as the upstream port will be restored to the downstream port; the upstream fiber optic port of the FTTR gateway is enabled for docking with the fiber optic upstream device and receiving data from the fiber optic network; for the downstream device, if it is connected to the FTTR gateway via an Ethernet cable, the downstream port mode of the corresponding Ethernet port will be maintained.

5. The FTTR-based data transmission method according to claim 4, characterized in that: The method further includes: if the uplink is a fiber optic network and there are several downlink Ethernet line connection devices, allocating bandwidth resources of the Ethernet port according to the data flow demand characteristics of the downlink devices, which specifically includes: Obtain the device type, business demand urgency, and historical data flow of the downstream device, and record them as the downstream device information; 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; 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; Allocate resources no less than the minimum bandwidth of the high-priority device from the available Ethernet port bandwidth resources; After allocating bandwidth resources to high-priority devices, count the remaining Ethernet port bandwidth resources: For medium-priority devices, the remaining Ethernet port bandwidth resources are allocated according to the set ratio based on their business needs and historical data traffic; For low-priority devices, when there is sufficient remaining bandwidth resources, the set basic bandwidth is allocated to them to maintain their basic network connection and functions; if the remaining bandwidth is limited, their bandwidth usage is restricted to ensure the performance of high-priority devices.

6. The FTTR-based data transmission method according to claim 5, characterized in that: The method further comprises: 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; 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; Count the total number of packets sent and the number of packets for which no response was received to derive the packet loss rate; 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.

7. The FTTR-based data transmission method according to claim 6, characterized in that: 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, including: 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; Sort 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. 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.

8. The FTTR-based data transmission method according to claim 7, characterized in that: 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 mode and power adjustment strategy, specifically including: when the network traffic demand is less than the 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.

9. A data transmission device based on FTTR, characterized in that: include: The first processing module is used to: monitor at least one of the network signal characteristics, the protocol type and the identification information of the connection device to identify the current network type; the network type includes Ethernet and optical fiber network; The second processing module is used to: identify the type of connection medium 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 provides network access for the FTTR gateway; the downstream device is a terminal device connected to the downstream of the FTTR gateway and receives 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

  • Data transmission method and device based on FTTR, equipment and medium

    CN118101384A

  • System and method for FTTR master device to adapt to COMBO PON

    CN118660245A

  • Intelligent fiber to the room (FTTR) gateway

    WO2022245330A1