# @gated.egp
# sample EGP configuration file
traceoption general kernal icmp egp protocol;
autonomoussystem 519;
rip no;
egp yes {
group ASin 519 {
neighbor 128.212.64.1;
};
};
static {
default gateway 128.212.64.1 pref 100;
};
propogate proto egp as 519 {
proto rip gateway 128.212.64.1 {
announce 128.212 metric 2;
};
proto direct {
announce 128.212 metric 2;
};
};
propogate proto rip {
proto default {
announce 0.0.0.0 metric 1;
};
proto rip {
noannounce all;
};
};
| Type(8 bits) | Unused (8 bits) | |
| Sequence # (16 bits) | ||
| Update | # Distances | |
| Distance 1 | # Networks at 1 | |
| First Network at Distance 1(24 bits) | ||
| Second Network at Distance 1(24 bits) | ||
| etc... | ||
| Last Network at Distance 1(24 bits) | ||
| Distance 2 | # Networks at 2 | |
| First Network at Distance 2(24 bits) | ||
| Second Network at Distance 2(24 bits) | ||
| etc... | ||
| Last Network at Distance 2(24 bits) | ||
| etc... | ||
| Command Name | Command Description | Response Name | Response Description |
|---|---|---|---|
| Request | Requests that a neighbor become a gateway | Confirm/Refuse | Agre or refuse a request |
| Cease | Request the termination of a neighbor | Cease-Ack | Agree to terminiation |
| Hello | Request confirmation of routing to a neighbor(neighbor reachability) | IHU | Confirms the routing |
| Poll | Requests that the neighbor provide network information(network reachability) | Update | Provides network information |
| Vers | Type | Code | Status |
| Checksum | System # | ||
| Sequence # | Hello Interval | ||
| Poll Inteval | |||
| State | Description |
|---|---|
| 0 | Idle - gateway not involved in any activity |
| 1 | Acquisition - gateway can transmit/receive messages but not act as a full messaging gateway |
| 2 | Down - gateway is not operational |
| 3 | Up - gateway is processing and responding to EGP messages |
| 4 | Cease - gateway ceases all updating operations, but still sends/receives CEASE messages |
| Command | Response |
|---|---|
| Request | Confirm |
| Refuse | none |
| Error | none |
| Cease | Cease ACK |
| Hello | IHU |
| Poll | Update |
| Name | Description |
|---|---|
| M | Hello polling mode |
| P1 | minimum interval acceptable between successive received Hello commands (default - 30 sec) |
| R | Receive sequence # |
| T1 | Interval between Hello command retransmissions |
| Command Value |
| Version # |
| Reserved |
| Family protocol |
| Network Address |
| Network Address |
| Network Address |
| Metric(distance in hops) |
| Checksum |
| Date |
| Time |
| Timestamp (used to calculate round-trip delays) |
| Offset (pointer) |
| # of hosts |
| Delay for Host 1 |
| Offset for Host 1 (difference between sending and receiving clock) |
gateways send messages to each other through advertisements send through HELLO update messages
OSPF maintains several tables for determining routes:
| Version(8 bits) |
| Type(8 bits) |
| Packet Length(16 bits) |
| Router ID(32 bits) |
| Area ID(32 bits) |
| Checksum(16 bits) |
| Authenitication Type(16 bits) |
| Authentication(64 bits) |
| OSPF Header (192 bits) |
| Network Mask(32 bits) |
| Hello Interval(16 bits) |
| Options(8 bits) |
| Router Priority(8 bits) |
| Dead Interval(32 bits) |
| Designated Router(32 bits) |
| Backup Router(32 bits) |
| Neighbor 1(32 bits) |
| etc. |