主权项 |
1. A method for dynamically adapting a maximum transmission unit (MTU) size in a computer network, comprising:
receiving a packet at a first link of a switch of the computer network; determining, by an MTU size adaptor of the switch, a message type of the received packet; determining, by the MTU size adaptor of the switch, an MTU size of the received packet based on an application programming interface (API) crossing value associated with the first link of the switch; determining, by the MTU size adaptor of the switch, an associated destination MTU size of a second link of the switch as a target destination of the received packet; decreasing, by the MTU size adaptor of the switch, the associated destination MTU size of the second link based on determining that the message type is a control message type; increasing, by the MTU size adaptor of the switch, the associated destination MTU size of the second link based on determining that the message type is a data message type; and adjusting, by the MTU size adaptor of the switch, the associated destination MTU size of the second link based on a difference between the MTU size of the received packet and the associated destination MTU size of the second link. |