Manual:IP/Packing
Overview
IP Packing provides packet packaging service on network links. It allows simple packet aggregation into larger packets and compression of contents of packets.
Requirements
Packet packing is part of system package and has to have discovery protocol enabled on interface.
Configuration
Menu: /ip packing
It required to have configuration in two places, both routers should be set up symetrically:
- ip packing - to enable packet aggregation and/or compression on interface
- /ip neighbor discovery- to enable discovery protocol on the interface
Packing configuration
Property | Desciption |
---|---|
aggregated-size (20 .. 16384 default:1500) | size of aggregated packet that packing will try to achieve before sending packet over network |
disabled (yes|no) | state of packing rule, if value is yes it will be ignored and will not be part of active configuration |
interface (interface name) | packing will try to aggregate and/or compress packets from this interface |
packing (simple|compress-all|compress-headers|none) | action it should perform when packet is leaving interface packing rule is configured on.
|
unpacking (simple|compress-all|compress-headers|none) | action it should perform when packet is received on interface packing rule is configured on.
|
Warning: Router should be seen as neighbour of router over interface you want to enable packing on. If in neighbour list there are no entry indicating packing, packing is not working!
Note: Packing may increase latency on the link it is configured on!
Example
Router-A and Router-B are connected with cable with interface ether1 on Router-A and ether3 on Router-B. This example will aggregate packets coming from Router-A, but will leave packets from Router-B intact On Router-A:
- make sure discovery is enabled
/ip neighbor discovery set ether1 discover=yes
- add packing rule for the interface
/ip packing add interface=ether1 aggregated-size=1500 packing=simple unpacking=none
On Router-B:
- make sure discovery is enabled
/ip neighbor discovery set ether3 discover=yes
- add packing rule for the interface
/ip packing add interface=ether3 aggregated-size=1500 packing=none unpacking=simple