-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[networking] Start to improve networking protocols idea
- Rename some protocols - Add new protocol idea for OSI layer 1 as `Asb` - some minor fixes and improvements
- Loading branch information
1 parent
66a1480
commit c3e7cdd
Showing
5 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Asb - Physical Protocol |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Networking | ||
All requirements in networking response with `frame` idea. Each network packet contains many frames in desire order that read by devices in a network to do some desire logic in each device, e.g. switching, routing, multiplexing, ... | ||
|
||
## Frames | ||
As describe in [sRPC](./sRPC.md) too, Each packet can carry many frames until respect network MTU. All frames have fixed first field name `Type` with `signed 8bit` length (Negative frame type reserved and use to extend types to int16 (or int64) length) that is same as [MediaTypeID](./media-type.md) but not use 64bit unsigned integer and standard here as a byte to minimize packet unnecessary overhead. | ||
|
||
```go | ||
type Frames struct { | ||
Type int16 | ||
} | ||
``` | ||
|
||
## Frames Number | ||
frames number will be register here in this table and must be respect by all: | ||
|
||
| Num. | Frame name | Doc | | ||
| :---: | :---: | :---:| | ||
| 0 | Unset | -------- | | ||
| 1 | Asb | [Protocol](./networking-osi_1-Asb.md) | | ||
| 2 | | | | ||
| 3 | | | | ||
| 4 | | | | ||
| 5 | | | |