CN117319317B - Method, device and storage medium for adjusting MTU of CPE (customer premise equipment) underhung equipment - Google Patents
Method, device and storage medium for adjusting MTU of CPE (customer premise equipment) underhung equipment Download PDFInfo
- Publication number
- CN117319317B CN117319317B CN202311340227.6A CN202311340227A CN117319317B CN 117319317 B CN117319317 B CN 117319317B CN 202311340227 A CN202311340227 A CN 202311340227A CN 117319317 B CN117319317 B CN 117319317B
- Authority
- CN
- China
- Prior art keywords
- cpe
- mtu
- response message
- message
- hanging
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 230000004044 response Effects 0.000 claims abstract description 101
- 238000004590 computer program Methods 0.000 claims description 11
- 230000005540 biological transmission Effects 0.000 abstract description 9
- 238000004891 communication Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000006855 networking Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/36—Flow control; Congestion control by determining packet size, e.g. maximum transfer unit [MTU]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method, a device and a storage medium for adjusting MTU of CPE (customer premise equipment) hanging equipment, wherein the method comprises the following steps: obtaining the maximum transmissible message length of a first device establishing network connection with CPE; calculating the forwardable MTU of the CPE according to the network overhead of the established network and the maximum transmittable message length of the first equipment; acquiring a first request message of CPE down-hanging equipment; generating a first response message according to the forwardable MTU of the CPE and the first request message, and transmitting the first response message to CPE down-hanging equipment, so that the CPE down-hanging equipment configures the MTU of an interface according to the first response message when receiving the first response message. By implementing the method and the device, the MTU of the CPE down-hanging equipment can be accurately adjusted, and the accuracy of message transmission is improved.
Description
Technical Field
The present invention relates to the field of network communications technologies, and in particular, to a method, an apparatus, and a storage medium for adjusting an MTU of a CPE down-hanging device.
Background
In the technical field of network communication, when networking is performed, because of the requirement of networking topology, CPE (Customer Premise Equipment, wireless terminal access equipment) and other equipment are required to build a two-layer tunnel and add a network bridge, so that a transparent channel for transmitting Ethernet messages is provided for the down-hanging equipment. However, in general, when the ethernet two-layer tunnel is established, some extra byte overhead is required for the tunnel, and when a message sent by the down-hanging device of the CPE is close to or equal to the MTU (Maximum Transmission Unit ) of the CPE, the message is transmitted to the CPE device, because the size of the MTU exceeds the size of the underly exit MTU after the CPE encapsulates the two-layer tunnel, the message cannot be forwarded by a bridge in the CPE, and the transmitted message is directly discarded. In order to solve the problem of message loss, in the prior art, a MUT of an on-hook device of the CPE is manually adjusted to ensure accurate transmission of the message.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a storage medium for adjusting MTU of CPE (customer premise equipment) hanging equipment, which can accurately adjust the MTU of the CPE hanging equipment and improve the accuracy of message transmission.
An embodiment of the present invention provides a method for adjusting MTU of CPE down-hanging device, including:
obtaining the maximum transmissible message length of a first device establishing network connection with CPE;
calculating the forwardable MTU of the CPE according to the network overhead of the established network and the maximum transmittable message length of the first equipment;
acquiring a first request message of CPE down-hanging equipment;
Generating a first response message according to the forwardable MTU of the CPE and the first request message, and transmitting the first response message to CPE down-hanging equipment, so that the CPE down-hanging equipment configures the MTU of an interface according to the first response message when receiving the first response message.
Further, the obtaining the first request message of the CPE down-hanging device, generating a first response message according to the forwardable MTU of the CPE and the first request message, and transmitting the first response message to the CPE down-hanging device includes:
Acquiring a first DHCP request message of CPE down-hanging equipment;
Analyzing the first DHCP request message, writing the forwardable MTU of the CPE into an Option field of the analyzed first DHCP request message, generating a first response message after finishing writing the Option field of the first DHCP request message, and transmitting the first response message to the CPE down-hanging device.
Further, the method further comprises the following steps:
acquiring a second request message of the down-hanging device of the first device;
Generating a second response message according to the forwardable MTU of the CPE and the second request message, and transmitting the second response message to the down-hanging device of the first device, so that the down-hanging device of the first device configures the MTU of the self interface according to the second response message when receiving the second response message.
Further, the obtaining the second request message of the down-hanging device of the first device, generating a second response message according to the forwardable MTU of the CPE and the second request message, and transmitting the second response message to the down-hanging device of the first device, includes:
Acquiring a second DHCP request message of the first equipment;
Analyzing the second DHCP request message, writing the forwardable MTU of the CPE into an Option field of the analyzed second DHCP request message, generating a second response message after finishing writing the Option field of the second DHCP request message, and transmitting the second response message to the down-hanging equipment of the first equipment.
Further, the method further comprises the following steps:
When the CPE down-hanging equipment receives the first response message, configuring equipment parameters of the CPE down-hanging equipment according to the first response message;
Wherein, the device parameters of the CPE down-hanging device include an IP address, a gateway, and a mask.
Further, the method further comprises the following steps:
When the down-hanging device of the first device receives the second response message, configuring device parameters of the down-hanging device of the first device according to the second response message;
The device parameters of the hanging device of the first device include an IP address, a gateway and a mask.
On the basis of the method item embodiments, the invention correspondingly provides device item embodiments;
An embodiment of the present invention correspondingly provides an apparatus for adjusting MTU of CPE down-hanging device, including: the system comprises an MTU acquisition module, a forwardable MTU determination module and an MTU adjustment module;
The MTU acquisition module is used for acquiring the maximum transmissible message length of the first equipment which establishes network connection with the CPE;
The MTU determining module is configured to calculate a MTU capable of forwarding for the CPE according to network overhead of the established network and a maximum transmittable message length of the first device;
The MTU adjusting module is used for acquiring a first request message of CPE down-hanging equipment; generating a first response message according to the forwardable MTU of the CPE and the first request message, and transmitting the first response message to CPE down-hanging equipment, so that the CPE down-hanging equipment configures the MTU of an interface according to the first response message when receiving the first response message.
Another embodiment of the present invention provides a storage medium, where the storage medium includes a stored computer program, and when the computer program runs, controls a device where the storage medium is located to execute a method for adjusting an MTU of a CPE down-hanging device according to the embodiment of the present invention.
The invention has the following beneficial effects:
The invention provides a method, a device and a storage medium for adjusting MTU of CPE (customer premise equipment) down-hanging equipment, wherein the method comprises the steps of obtaining the maximum transmissible message length of first equipment which is connected with the CPE in a network mode, calculating the transmissible MTU according to the maximum transmissible message length of the first equipment and the network overhead of a current network, obtaining a request message of the CPE down-hanging equipment, generating a response message according to the request message and the transmissible MTU, and sending the response message to the down-hanging equipment of the CPE, so that the down-hanging equipment of the CPE configures the MTU of an interface of the CPE according to the received response message. The maximum transmissible message length of the first equipment and the network overhead of the current network are obtained to determine the transmissible MTU, and then the interface of the downlink equipment of the CPE is configured according to the transmissible MTU, so that the MTU determined by the interface of the downlink equipment of the CPE is the real MTU, the problem that the forwarded message is directly discarded because the size of the forwarded message exceeds the MTU of the interface when the MTU consumed by the network overhead is not considered is solved, and the accuracy of message transmission is improved. Further, the problem that the MTU of the hanging equipment is manually adjusted in the prior art is avoided, and the configuration efficiency of the MTU of the hanging equipment is improved.
Drawings
Fig. 1 is a flowchart of a method for adjusting an MTU of a CPE device under hook according to an embodiment of the present invention.
Fig. 2 is a topology diagram of a CPE device and a 5G-VxLAN device according to an embodiment of the present invention.
Fig. 3 is a flow chart of linkage between devices according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of a VxLAN encapsulation message according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an apparatus for adjusting MTU of CPE hanging equipment according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 1, a method for adjusting MTU of CPE device according to an embodiment of the present invention includes:
Step S1: obtaining the maximum transmissible message length of a first device establishing network connection with CPE;
step S2: calculating the forwardable MTU of the CPE according to the network overhead of the established network and the maximum transmittable message length of the first equipment;
step S3: acquiring a first request message of CPE down-hanging equipment;
Step S4: generating a first response message according to the forwardable MTU of the CPE and the first request message, and transmitting the first response message to CPE down-hanging equipment, so that the CPE down-hanging equipment configures the MTU of an interface according to the first response message when receiving the first response message.
Fig. 2 is a topology diagram of a CPE device and a 5G-VxLAN device according to an embodiment of the present invention. In this embodiment, the 5G-VxLAN device is used as the first device, and in actual use, the first device may not be limited to only the 5G-VxLAN device. In this scheme, the CPE device establishes an ethernet two-layer transparent transmission link with the 5G-VxLAN device using VxLAN technology over the 5G link. Based on the networking topology structure, the message encapsulated by the VxLAN in the CPE equipment needs to be sent out from the 5G WAN network card, and is only transmitted to the 5G-VxLAN equipment by the 5G link, and similarly, when the 5G-VxLAN equipment sends the message to the CPE equipment, the message is also transmitted to the CPE equipment by the 5G WAN network card in the 5G-VxLAN equipment through the 5G link. But due to the overhead of the VxLAN tunnel established by the 5G link, the actual transmissible MTU of the VxLAN network card is actually smaller than the MTU set by the 5G WAN network card. For example: and setting the MTU of the 5G WAN network card to be 1500, and setting the MTU of the overhead of the VxLAN tunnel to be 50, wherein the MTU of the VxLAN network card is 1450. At this time, the user equipment a (i.e. the CPE down-hanging device) discards the network message exceeding 1450 bytes when the network bridge of the CPE device receives the network message exceeding 1450 bytes through the ethernet card 1' interface because the MTU value of the network interface is 1500. In order to solve the problems, the invention provides the following solutions:
as shown in fig. 3, before step S1 is performed, the CPE device is usually initialized, so that the CPE device creates a VxLAN tunnel and adds the ethernet card 1 and the VxLAN network card to a bridge in the CPE device; meanwhile, initializing 5G-VxLAN equipment which is networked with the CPE equipment, creating a VxLAN tunnel in the 5G-VxLAN equipment, and adding the Ethernet card 1 and the VxLAN card into a transparent network bridge in the 5G-VxLAN equipment.
For step S1, the maximum transmittable message length of the underley network of the CPE device and the 5G-VxLAN device (namely the first device) is obtained. Preferably, the CPE device obtains the maximum transmissible message length of the 5G-VxLAN device through an underley network by using a PING detection technology. The PING detection principle corresponding to the method is as follows: the CPE device continuously sends the IP message which is inseparable and ICMP request messages with different lengths to the 5G-VxLAN device, the 5G-VxLAN device feeds back a response message to the CPE device when receiving the message sent by the CPE device until the CPE device does not receive the response message responded by the 5G-VxLAN device, and the CPE device can know that the maximum transmissible message length of the 5G-VxLAN device is reached at the moment.
And for the step S2, calculating the MTU which can be transmitted by the VxLAN tunnel in the CPE equipment according to the overhead of the VxLAN tunnel (overlay network), and then obtaining the maximum MTU which can be forwarded by the network bridge in the CPE equipment. In this embodiment, the MTU of the ethernet card 1 is set to 1500, the MTU of the vxlan card is set to 1450, and the MTU of the 5g WAN card is set to 1500. The MTU of the underlay of the CPE device is set to 1500, i.e., the length of the IP message that the CPE device can send out is 1500, and the MTU of the CPE underlay device (i.e., the length of the IP message sent out by the CPE underlay device) can be determined by combining the VxLAN encapsulation message as shown in fig. 4. The partial fields included in fig. 4 have the following meanings: an Outer IP header represents an IP header, typically 20 bytes; an Outer UDP header represents a UDP header, typically 8 bytes; VXLAN header means VXLAN header, typically 8 bytes; INNER ETHERNET HEADER denotes the ethernet frame header, typically 14 bytes, in the message sent by the down device (user equipment a); INNER IP HEADER denotes the IP header in the message sent by the down-link device (user equipment a); payload represents IP Payload data in a message sent by the down-hanging device (user equipment a).
The MTU of the down device generally refers to the length of an IP packet sent by the down device, that is, the length of a packet INNER IP HEADER +payload sent by the down device, and does not include the ethernet frame header (i.e., INNER ETHERNET HEADER in fig. 4) in the packet sent by the down device. Assuming that the value of the MTU of the underhung device is N, the MTU of CPE-based underlay is assumed to be 1500, satisfying the formula:
Outer IP header+Outer UDP header+VXLAN header+Inner Ethernet header+N=1500
the MTU of the CPE under-hanging device is 1450, namely the transmissible MTU of the CPE is 1450, which can be obtained through the formula.
For step S3 and step S4, the user equipment a (i.e. the CPE down-hanging device) dynamically acquires the IP address, and sends a first request message to the CPE device. After receiving the first request message, the CPE equipment analyzes the first request message, generates a first response message according to the analyzed first request message and the forwardable MTU calculated in the step S2, and transmits the first response message to the user equipment A. After receiving the first response message, the user equipment A analyzes the first response message and completes the configuration of the user equipment A according to the analysis content.
In a preferred embodiment, the obtaining the first request message of the CPE down-hanging device, generating a first response message according to the forwardable MTU of the CPE and the first request message, and transmitting the first response message to the CPE down-hanging device, includes: acquiring a first DHCP request message of CPE down-hanging equipment; analyzing the first DHCP request message, writing the forwardable MTU of the CPE into an Option field of the analyzed first DHCP request message, generating a first response message after finishing writing the Option field of the first DHCP request message, and transmitting the first response message to the CPE down-hanging device.
Specifically, the request message adopted in the embodiment is a request message based on a DHCP protocol, the user equipment a sends a first DHCP request message to the CPE device, a DHCP service module is disposed in the CPE device, when the first DHCP request message sent by the user equipment a is received, the DHCP service module generates a DHCP-ACK message corresponding to the reply request message for the DHCP request message, and fills the maximum MTU that can be forwarded by the bridge of the CPE device into a field Option (26) INTERFACE MTU of the DHCP-ACK message, generates a first response message according to the filled DHCP-ACK message, and transmits the first response message to the user equipment a through an ethernet card 1 interface. After receiving the first response message, the user equipment A configures an interface MTU of the DHCP-ACK message A filled by the user equipment a according to the first response message, namely the filled DHCP-ACK message.
In a preferred embodiment, further comprising: when the CPE down-hanging equipment receives the first response message, configuring equipment parameters of the CPE down-hanging equipment according to the first response message; wherein, the device parameters of the CPE down-hanging device include an IP address, a gateway, and a mask.
Specifically, the DHCP-ACK message sent to the ue a may further include fields for indicating an IP address, a mask, a gateway, etc., and after the ue a receives the filled DHCP-ACK message, the ue a may configure the IP address, the mask, the gateway, etc. of the ue a according to the fields of the IP address, the mask, the gateway, etc. carried in the DHCP-ACK message.
In a preferred embodiment, further comprising: acquiring a second request message of the down-hanging device of the first device; generating a second response message according to the forwardable MTU of the CPE and the second request message, and transmitting the second response message to the down-hanging device of the first device, so that the down-hanging device of the first device configures the MTU of the self interface according to the second response message when receiving the second response message.
Specifically, the user equipment B (i.e. the down-hanging device of the first device) dynamically acquires an IP address, sends a request message to the 5G-VxLAN device, encapsulates the request message sent by the user equipment B, sends the encapsulated message to the CPE device through the 5G link, and the encapsulated message acquired by the CPE device is the second request message. The CPE equipment unpacks the second request message, generates a response message according to the unpacked second request message and the forwardable MTU of the CPE, and encapsulates the response message to generate a message which is the second response message. And sending the second response message to 5G-VxLAN equipment through a 5G link, and decapsulating the second response message by the 5G-VxLAN equipment and sending the decapsulated second response message to user equipment B through a VxLAN interface. And the user equipment B configures the MTU of the interface of the user equipment B after receiving the second response message after the unpacking.
In a preferred embodiment, the obtaining the second request message of the down device of the first device, generating a second response message according to the forwardable MTU of the CPE and the second request message, and transmitting the second response message to the down device of the first device, includes: acquiring a second DHCP request message of the first equipment; analyzing the second DHCP request message, writing the forwardable MTU of the CPE into an Option field of the analyzed second DHCP request message, generating a second response message after finishing writing the Option field of the second DHCP request message, and transmitting the second response message to the down-hanging equipment of the first equipment.
Specifically, the request message adopted in the embodiment is a request message based on a DHCP protocol, the user equipment B sends the DHCP request message to the 5G-VxLAN device, and the 5G-VxLAN device encapsulates the DHCP request message to the VxLAN message, generates a second DHCP request message, and sends the second DHCP request message to the CPE device through the 5G link. The CPE equipment unpacks the VxLAN message and submits the unpacked message to a DHCP service module of the CPE equipment, the DHCP service module analyzes the second DHCP request message, generates a DHCP-ACK message corresponding to the reply request message, and fills the maximum MTU which can be forwarded by a bridge of the CPE equipment into a field Option (26) INTERFACE MTU of the DHCP-ACK message. And encapsulating the filled DHCP-ACK message into a VxLAN message, and transmitting the encapsulated VxLAN message to 5G-VxLAN equipment through a 5G link. The 5G-VxLAN equipment decodes the received VxLAN message to obtain a DHCP-ACK message carrying the MTU which can be forwarded, and transmits the DHCP-ACK message to a transparent network bridge of the 5G-VxLAN equipment. And the network bridge sends the DHCP-ACK message to the user equipment B through the VxLAN interface. And the user equipment B configures the MTU of the interface of the user equipment B after receiving the second response message after the unpacking.
In a preferred embodiment, further comprising: when the down-hanging device of the first device receives the second response message, configuring device parameters of the down-hanging device of the first device according to the second response message; the device parameters of the hanging device of the first device include an IP address, a gateway and a mask.
Specifically, the DHCP-ACK message sent to the ue B may further include fields for indicating an IP address, a mask, a gateway, etc., and after the ue B receives the filled DHCP-ACK message, the ue B may configure the IP address, the mask, the gateway, etc. of the ue B according to the fields of the IP address, the mask, the gateway, etc. carried in the DHCP-ACK message.
In addition, after the MTU configuration of the respective device interfaces of the user device A and the user device B is completed, the user device A and the user device B can transmit messages based on the interfaces MTU, so that the method is suitable for message transmission between the CPE device and the network bridge of the 5G-VxLAN device, meanwhile, the problem that the messages are directly discarded by the message receiving side interface in the message transmission process can be avoided by the adjusted MTU, and the accurate and complete transmission of the messages is ensured.
On the basis of the method item embodiments, the invention correspondingly provides the device item embodiments.
As shown in fig. 5, an embodiment of the present invention provides an apparatus for adjusting MTU of CPE hanging equipment, including: the system comprises an MTU acquisition module, a forwardable MTU determination module and an MTU adjustment module;
The MTU acquisition module is used for acquiring the maximum transmissible message length of the first equipment which establishes network connection with the CPE;
The MTU determining module is configured to calculate a MTU capable of forwarding for the CPE according to network overhead of the established network and a maximum transmittable message length of the first device;
The MTU adjusting module is used for acquiring a first request message of CPE down-hanging equipment; generating a first response message according to the forwardable MTU of the CPE and the first request message, and transmitting the first response message to CPE down-hanging equipment, so that the CPE down-hanging equipment configures the MTU of an interface according to the first response message when receiving the first response message.
It should be noted that the above-described apparatus embodiments are merely illustrative, and the units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the embodiment of the device provided by the invention, the connection relation between the modules represents that the modules have communication connection, and can be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
It will be clear to those skilled in the art that, for convenience and brevity, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Based on the method item embodiments, the invention correspondingly provides storage medium item embodiments.
An embodiment of the present invention provides a storage medium, where the storage medium includes a stored computer program, and when the computer program runs, controls a device where the storage medium is located to execute a method for adjusting an MTU of a CPE down-hanging device according to any one of the present invention.
The storage medium is a computer readable storage medium, and the computer program is stored in the computer readable storage medium, and when executed by a processor, the computer program can implement the steps of the above-mentioned method embodiments. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
While the foregoing is directed to the preferred embodiments of the present invention, it will be appreciated by those skilled in the art that changes and modifications may be made without departing from the principles of the invention, such changes and modifications are also intended to be within the scope of the invention.
Claims (7)
1. A method for adjusting an MTU of a CPE down device, comprising:
obtaining the maximum transmissible message length of a first device establishing network connection with CPE;
calculating the forwardable MTU of the CPE according to the network overhead of the established network and the maximum transmittable message length of the first equipment;
Acquiring a first DHCP request message of CPE down-hanging equipment;
Generating a first response message according to the forwardable MTU of the CPE and the first DHCP request message, and transmitting the first response message to CPE down-hanging equipment, so that the CPE down-hanging equipment configures the MTU of an interface of the CPE down-hanging equipment according to the first response message when receiving the first response message;
acquiring a second DHCP request message of the down-hanging device of the first device;
Generating a second response message according to the forwardable MTU of the CPE and the second DHCP request message, and transmitting the second response message to the down-hanging device of the first device, so that the down-hanging device of the first device configures the MTU of the self interface according to the second response message when receiving the second response message.
2. The method for adjusting MTU of CPE down-hanging device according to claim 1, wherein the generating a first response message according to the forwardable MTU of the CPE and the first DHCP request message and transmitting the first response message to the CPE down-hanging device comprises:
Analyzing the first DHCP request message, writing the forwardable MTU of the CPE into an Option field of the analyzed first DHCP request message, generating a first response message after finishing writing the Option field of the first DHCP request message, and transmitting the first response message to the CPE down-hanging device.
3. The method for adjusting MTU of a CPE down-hanging device according to claim 1, wherein the generating a second response message according to the forwardable MTU of the CPE and the second DHCP request message and transmitting the second response message to the down-hanging device of the first device comprises:
Analyzing the second DHCP request message, writing the forwardable MTU of the CPE into an Option field of the analyzed second DHCP request message, generating a second response message after finishing writing the Option field of the second DHCP request message, and transmitting the second response message to the down-hanging equipment of the first equipment.
4. The method for adjusting the MTU of a CPE under-hook device of claim 1, further comprising:
When the CPE down-hanging equipment receives the first response message, configuring equipment parameters of the CPE down-hanging equipment according to the first response message;
Wherein, the device parameters of the CPE down-hanging device include an IP address, a gateway, and a mask.
5. The method for adjusting the MTU of a CPE under-hook device of claim 1, further comprising:
When the down-hanging device of the first device receives the second response message, configuring device parameters of the down-hanging device of the first device according to the second response message;
The device parameters of the hanging device of the first device include an IP address, a gateway and a mask.
6. An apparatus for adjusting the MTU of a CPE underhung device, comprising: the system comprises an MTU acquisition module, a forwardable MTU determination module and an MTU adjustment module;
The MTU acquisition module is used for acquiring the maximum transmissible message length of the first equipment which establishes network connection with the CPE;
The MTU determining module is configured to calculate a MTU capable of forwarding for the CPE according to network overhead of the established network and a maximum transmittable message length of the first device;
The MTU adjusting module is used for acquiring a first DHCP request message of the CPE down-hanging device; generating a first response message according to the forwardable MTU of the CPE and the first DHCP request message, and transmitting the first response message to CPE down-hanging equipment, so that the CPE down-hanging equipment configures the MTU of an interface of the CPE down-hanging equipment according to the first response message when receiving the first response message; acquiring a second DHCP request message of the down-hanging device of the first device; generating a second response message according to the forwardable MTU of the CPE and the second DHCP request message, and transmitting the second response message to the down-hanging device of the first device, so that the down-hanging device of the first device configures the MTU of the self interface according to the second response message when receiving the second response message.
7. A storage medium comprising a stored computer program, wherein the computer program, when run, controls a device in which the storage medium is located to perform a method of adjusting a CPE-down device MTU according to any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311340227.6A CN117319317B (en) | 2023-10-16 | 2023-10-16 | Method, device and storage medium for adjusting MTU of CPE (customer premise equipment) underhung equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311340227.6A CN117319317B (en) | 2023-10-16 | 2023-10-16 | Method, device and storage medium for adjusting MTU of CPE (customer premise equipment) underhung equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117319317A CN117319317A (en) | 2023-12-29 |
CN117319317B true CN117319317B (en) | 2024-08-06 |
Family
ID=89297018
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311340227.6A Active CN117319317B (en) | 2023-10-16 | 2023-10-16 | Method, device and storage medium for adjusting MTU of CPE (customer premise equipment) underhung equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117319317B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103236964A (en) * | 2013-05-07 | 2013-08-07 | 烽火通信科技股份有限公司 | Linux-based dual-stack lite (DS-lite) implementation method and customer premise equipment (CPE) access equipment thereof |
CN107342885A (en) * | 2016-05-03 | 2017-11-10 | 中兴通讯股份有限公司 | Method of adjustment, device and the terminal device of terminal MTU |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9912600B1 (en) * | 2014-11-06 | 2018-03-06 | vIPtela Inc. | Dynamic discovery of network packet size |
CN113923076A (en) * | 2021-09-06 | 2022-01-11 | 长沙市同迅计算机科技有限公司 | SD-WAN-based Ethernet two-layer data exchange method |
CN114745456A (en) * | 2022-05-13 | 2022-07-12 | 咪咕音乐有限公司 | Message processing method and device and network address translation equipment |
-
2023
- 2023-10-16 CN CN202311340227.6A patent/CN117319317B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103236964A (en) * | 2013-05-07 | 2013-08-07 | 烽火通信科技股份有限公司 | Linux-based dual-stack lite (DS-lite) implementation method and customer premise equipment (CPE) access equipment thereof |
CN107342885A (en) * | 2016-05-03 | 2017-11-10 | 中兴通讯股份有限公司 | Method of adjustment, device and the terminal device of terminal MTU |
Also Published As
Publication number | Publication date |
---|---|
CN117319317A (en) | 2023-12-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108234235B (en) | Method, network device and computer-readable storage medium for data monitoring | |
CN112165725B (en) | Message processing method and device | |
CN109981668A (en) | Common apparatus Internet of Things communication means based on the extensive agreement of MQTT | |
EP1768321A1 (en) | Interworking, circuit emulation service over packet and IP/MPLS packet processing | |
CN107196834B (en) | Message processing method and device | |
EP3073698A1 (en) | Method for processing address resolution protocol message, forwarder and controller | |
CN106559302A (en) | Single tunnel method for building up, device and system | |
CN107534572A (en) | Communication network polymerization test payload | |
CN102868613A (en) | Method and device for transmission of generic routing encapsulation tunnel packet | |
CN107889132A (en) | The method, apparatus and system of a kind of link quality measurements | |
CN112583718B (en) | SRv6 message transmission method, system, equipment and medium in SRoU scene | |
JP2017532875A (en) | Data exchange method, baseband processing unit, wireless remote unit and relay unit | |
CN105164973B (en) | Optical fiber is to distribution point device and its communication means | |
CN117319317B (en) | Method, device and storage medium for adjusting MTU of CPE (customer premise equipment) underhung equipment | |
CN109067922A (en) | A kind of data transmission method and device | |
WO2023173876A1 (en) | Data communication method and apparatus, device and medium | |
WO2015096734A1 (en) | Downlink transmission method for service data, and packet data gateway | |
CN109302504B (en) | Method for establishing control signaling channel in PTN, PTN network element and storage medium | |
CN107835109B (en) | Method and system for testing packet transport network defined by software | |
CN101778040A (en) | Method and device for realizing time division multiplex data transmission | |
CN115720302A (en) | Communication control method, system, device and storage medium | |
CN107171972B (en) | Multilink-based data transmission method and device | |
WO2014131334A1 (en) | Method and device for multi-link fusion | |
CN109873763A (en) | A kind of communication means and equipment | |
CN112714490A (en) | Time delay calibration method and device, computer equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |